xieke 1 год назад
Родитель
Сommit
8c3802921b
100 измененных файлов: 11098 добавлений и 265 удалений
  1. 2
    0
      qomo-kn-cost-manage-start/pom.xml
  2. 15
    2
      qomo-kn-cost-manage-start/src/main/resources/application-dev.yml
  3. 5
    0
      qomo-kn-cost-manage/pom.xml
  4. 248
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostActualController.java
  5. 179
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostAufnrMatnrController.java
  6. 16
    14
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostCountController.java
  7. 178
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostInvoiceController.java
  8. 196
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningAufnrController.java
  9. 181
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningDiffController.java
  10. 179
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningLaborController.java
  11. 184
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningMaterialController.java
  12. 179
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningReasonController.java
  13. 213
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningResultController.java
  14. 180
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapAfruController.java
  15. 178
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapEkpoController.java
  16. 180
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapHourRateController.java
  17. 220
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapZcorcController.java
  18. 179
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapZtmmx004Controller.java
  19. 179
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardBomController.java
  20. 3
    3
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardResultController.java
  21. 81
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostActual.java
  22. 59
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostAufnrMatnr.java
  23. 71
    4
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostCount.java
  24. 151
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostInvoice.java
  25. 83
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostMiningAufnr.java
  26. 59
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostMiningDiff.java
  27. 175
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostMiningLabor.java
  28. 67
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostMiningMaterial.java
  29. 51
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostMiningReason.java
  30. 139
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostMiningResult.java
  31. 24
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostResultValue.java
  32. 159
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostSapAfru.java
  33. 115
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostSapEine.java
  34. 95
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostSapEkpo.java
  35. 67
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostSapHourRate.java
  36. 311
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostSapZcorc.java
  37. 307
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostSapZtmmx004.java
  38. 89
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostStandardBom.java
  39. 117
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostStandardProductprocess.java
  40. 175
    117
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostStandardResult.java
  41. 18
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostActualMapper.java
  42. 17
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostAufnrMatnrMapper.java
  43. 7
    7
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostBomRelevancyMapper.java
  44. 17
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostInvoiceMapper.java
  45. 18
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningAufnrMapper.java
  46. 17
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningDiffMapper.java
  47. 17
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningLaborMapper.java
  48. 17
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningMaterialMapper.java
  49. 17
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningReasonMapper.java
  50. 17
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningResultMapper.java
  51. 18
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapAfruMapper.java
  52. 18
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapEineMapper.java
  53. 17
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapEkpoMapper.java
  54. 17
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapHourRateMapper.java
  55. 17
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapZcorcMapper.java
  56. 17
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapZtmmx004Mapper.java
  57. 18
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostStandardBomMapper.java
  58. 17
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostStandardProductprocessMapper.java
  59. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostActualMapper.xml
  60. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostAufnrMatnrMapper.xml
  61. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostInvoiceMapper.xml
  62. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningAufnrMapper.xml
  63. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningDiffMapper.xml
  64. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningLaborMapper.xml
  65. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningMaterialMapper.xml
  66. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningReasonMapper.xml
  67. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningResultMapper.xml
  68. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapAfruMapper.xml
  69. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapEineMapper.xml
  70. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapEkpoMapper.xml
  71. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapHourRateMapper.xml
  72. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapZcorcMapper.xml
  73. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapZtmmx004Mapper.xml
  74. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostStandardBomMapper.xml
  75. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostStandardProductprocessMapper.xml
  76. 3380
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/CostEffectiveService.java
  77. 465
    117
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/StandardCostService.java
  78. 204
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/webservice/RequestSapXmlData600.java
  79. 13
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/webservice/SAPOrderService.java
  80. 576
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/webservice/SAPOrderServiceImpl.java
  81. 23
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/webservice/SoapResult.java
  82. 452
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/webservice/SoapUtil.java
  83. 38
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostActualService.java
  84. 15
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostAufnrMatnrService.java
  85. 1
    1
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostBomRelevancyService.java
  86. 11
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostCountService.java
  87. 20
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostInvoiceService.java
  88. 29
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostMiningAufnrService.java
  89. 19
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostMiningDiffService.java
  90. 15
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostMiningLaborService.java
  91. 27
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostMiningMaterialService.java
  92. 15
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostMiningReasonService.java
  93. 20
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostMiningResultService.java
  94. 15
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostSapAfruService.java
  95. 20
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostSapEineService.java
  96. 21
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostSapEkpoService.java
  97. 14
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostSapHourRateService.java
  98. 15
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostSapZcorcService.java
  99. 15
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostSapZtmmx004Service.java
  100. 0
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostStandardBomService.java

+ 2
- 0
qomo-kn-cost-manage-start/pom.xml Просмотреть файл

@@ -33,6 +33,8 @@
33 33
             <scope>test</scope>
34 34
         </dependency>
35 35
 
36
+
37
+
36 38
         <dependency>
37 39
             <groupId>com.zzsmart.qomo</groupId>
38 40
             <artifactId>qomo-kn-cost-manage</artifactId>

+ 15
- 2
qomo-kn-cost-manage-start/src/main/resources/application-dev.yml Просмотреть файл

@@ -235,10 +235,17 @@ spring:
235 235
 #      allow-circular-references: true
236 236
   redis:
237 237
     database: 10
238
-    host: localhost
238
+    host: 158.158.4.48
239 239
     port: 6379
240
+    password: 'zzboard'
240 241
     main:
241 242
       allow-circular-references: true
243
+#  redis:
244
+#    database: 10
245
+#    host: localhost
246
+#    port: 6379
247
+#    main:
248
+#      allow-circular-references: true
242 249
 
243 250
   #rabbitmq 配置
244 251
   rabbitmq:
@@ -459,4 +466,10 @@ minio:
459 466
   secret-key: qm123456
460 467
 
461 468
 condaEnv: py310
462
-tikaServerUrl: http://192.168.50.99:8099/qomo-tika/
469
+tikaServerUrl: http://192.168.50.99:8099/qomo-tika/
470
+
471
+sap:
472
+  service:
473
+    url: http://158.158.5.98:7005/SAP_800/PS/SAP800_DSJ_ZSAP_DSJ_005_PS
474
+    user: sap_dsj
475
+    password: sapdsjabc123

+ 5
- 0
qomo-kn-cost-manage/pom.xml Просмотреть файл

@@ -39,5 +39,10 @@
39 39
             <groupId>com.zzsmart.qomo</groupId>
40 40
             <artifactId>qomo-data-selfReport</artifactId>
41 41
         </dependency>
42
+        <dependency>
43
+            <groupId>commons-httpclient</groupId>
44
+            <artifactId>commons-httpclient</artifactId>
45
+            <version>3.1</version>
46
+        </dependency>
42 47
     </dependencies>
43 48
 </project>

+ 248
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostActualController.java Просмотреть файл

@@ -0,0 +1,248 @@
1
+package com.zzsmart.qomo.kn.cost.manage.controller;
2
+
3
+import java.util.Arrays;
4
+import java.util.List;
5
+import java.util.Map;
6
+import java.util.stream.Collectors;
7
+import java.io.IOException;
8
+import java.io.UnsupportedEncodingException;
9
+import java.net.URLDecoder;
10
+import javax.servlet.http.HttpServletRequest;
11
+import javax.servlet.http.HttpServletResponse;
12
+
13
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostActual;
14
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
15
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostActualService;
16
+import com.zzsmart.qomo.kn.cost.manage.vo.CostEffectiveVO;
17
+import com.zzsmart.qomo.kn.cost.manage.vo.LaborDiffVO;
18
+import com.zzsmart.qomo.kn.cost.manage.vo.RealLaborVO;
19
+import com.zzsmart.qomo.kn.cost.manage.vo.RealProduceVO;
20
+import org.jeecg.common.api.vo.Result;
21
+import org.jeecg.common.system.query.QueryGenerator;
22
+import org.jeecg.common.util.oConvertUtils;
23
+
24
+
25
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
26
+import com.baomidou.mybatisplus.core.metadata.IPage;
27
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
28
+import lombok.extern.slf4j.Slf4j;
29
+
30
+import org.jeecgframework.poi.excel.ExcelImportUtil;
31
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
32
+import org.jeecgframework.poi.excel.entity.ExportParams;
33
+import org.jeecgframework.poi.excel.entity.ImportParams;
34
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
35
+import org.jeecg.common.system.base.controller.JeecgController;
36
+import org.springframework.beans.factory.annotation.Autowired;
37
+import org.springframework.web.bind.annotation.*;
38
+import org.springframework.web.multipart.MultipartFile;
39
+import org.springframework.web.multipart.MultipartHttpServletRequest;
40
+import org.springframework.web.servlet.ModelAndView;
41
+import com.alibaba.fastjson.JSON;
42
+import io.swagger.annotations.Api;
43
+import io.swagger.annotations.ApiOperation;
44
+import org.jeecg.common.aspect.annotation.AutoLog;
45
+import org.apache.shiro.authz.annotation.RequiresPermissions;
46
+
47
+ /**
48
+ * @Description: app_scene_cost_actual
49
+ * @Author: jeecg-boot
50
+ * @Date:   2024-10-15
51
+ * @Version: V1.0
52
+ */
53
+@Api(tags="app_scene_cost_actual")
54
+@RestController
55
+@RequestMapping("/cost/appSceneCostActual")
56
+@Slf4j
57
+public class AppSceneCostActualController extends JeecgController<AppSceneCostActual, IAppSceneCostActualService> {
58
+	@Autowired
59
+	private IAppSceneCostActualService appSceneCostActualService;
60
+	
61
+	/**
62
+	 * 分页列表查询
63
+	 *
64
+	 * @param appSceneCostActual
65
+	 * @param pageNo
66
+	 * @param pageSize
67
+	 * @param req
68
+	 * @return
69
+	 */
70
+	//@AutoLog(value = "app_scene_cost_actual-分页列表查询")
71
+	@ApiOperation(value="app_scene_cost_actual-分页列表查询", notes="app_scene_cost_actual-分页列表查询")
72
+	@GetMapping(value = "/list")
73
+	public Result<IPage<AppSceneCostActual>> queryPageList(AppSceneCostActual appSceneCostActual,
74
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
75
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
76
+								   HttpServletRequest req) {
77
+		QueryWrapper<AppSceneCostActual> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostActual, req.getParameterMap());
78
+		queryWrapper.orderByDesc("create_time");
79
+		Page<AppSceneCostActual> page = new Page<AppSceneCostActual>(pageNo, pageSize);
80
+		IPage<AppSceneCostActual> pageList = appSceneCostActualService.page(page, queryWrapper);
81
+		return Result.OK(pageList);
82
+	}
83
+	
84
+	/**
85
+	 *   添加
86
+	 *
87
+	 * @param appSceneCostActual
88
+	 * @return
89
+	 */
90
+	@AutoLog(value = "app_scene_cost_actual-添加")
91
+	@ApiOperation(value="app_scene_cost_actual-添加", notes="app_scene_cost_actual-添加")
92
+	//@RequiresPermissions("cost:app_scene_cost_actual:add")
93
+	@PostMapping(value = "/add")
94
+	public Result<String> add(@RequestBody CostEffectiveVO appSceneCostActual) {
95
+		appSceneCostActualService.addCostActual(appSceneCostActual);
96
+		return Result.OK("添加成功!");
97
+	}
98
+	
99
+	/**
100
+	 *  编辑
101
+	 *
102
+	 * @param appSceneCostActual
103
+	 * @return
104
+	 */
105
+	@AutoLog(value = "app_scene_cost_actual-编辑")
106
+	@ApiOperation(value="app_scene_cost_actual-编辑", notes="app_scene_cost_actual-编辑")
107
+	@RequiresPermissions("cost:app_scene_cost_actual:edit")
108
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
109
+	public Result<String> edit(@RequestBody AppSceneCostActual appSceneCostActual) {
110
+		appSceneCostActualService.updateById(appSceneCostActual);
111
+		return Result.OK("编辑成功!");
112
+	}
113
+	
114
+	/**
115
+	 *   通过id删除
116
+	 *
117
+	 * @param id
118
+	 * @return
119
+	 */
120
+	@AutoLog(value = "app_scene_cost_actual-通过id删除")
121
+	@ApiOperation(value="app_scene_cost_actual-通过id删除", notes="app_scene_cost_actual-通过id删除")
122
+	@RequiresPermissions("cost:app_scene_cost_actual:delete")
123
+	@DeleteMapping(value = "/delete")
124
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
125
+		appSceneCostActualService.removeById(id);
126
+		return Result.OK("删除成功!");
127
+	}
128
+	
129
+	/**
130
+	 *  批量删除
131
+	 *
132
+	 * @param ids
133
+	 * @return
134
+	 */
135
+	@AutoLog(value = "app_scene_cost_actual-批量删除")
136
+	@ApiOperation(value="app_scene_cost_actual-批量删除", notes="app_scene_cost_actual-批量删除")
137
+	@RequiresPermissions("cost:app_scene_cost_actual:deleteBatch")
138
+	@DeleteMapping(value = "/deleteBatch")
139
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
140
+		this.appSceneCostActualService.removeByIds(Arrays.asList(ids.split(",")));
141
+		return Result.OK("批量删除成功!");
142
+	}
143
+	
144
+	/**
145
+	 * 通过id查询
146
+	 *
147
+	 * @param id
148
+	 * @return
149
+	 */
150
+	//@AutoLog(value = "app_scene_cost_actual-通过id查询")
151
+	@ApiOperation(value="app_scene_cost_actual-通过id查询", notes="app_scene_cost_actual-通过id查询")
152
+	@GetMapping(value = "/queryById")
153
+	public Result<AppSceneCostActual> queryById(@RequestParam(name="id",required=true) String id) {
154
+		AppSceneCostActual appSceneCostActual = appSceneCostActualService.getById(id);
155
+		if(appSceneCostActual==null) {
156
+			return Result.error("未找到对应数据");
157
+		}
158
+		return Result.OK(appSceneCostActual);
159
+	}
160
+
161
+    /**
162
+    * 导出excel
163
+    *
164
+    * @param request
165
+    * @param appSceneCostActual
166
+    */
167
+    @RequiresPermissions("cost:app_scene_cost_actual:exportXls")
168
+    @RequestMapping(value = "/exportXls")
169
+    public ModelAndView exportXls(HttpServletRequest request, AppSceneCostActual appSceneCostActual) {
170
+        return super.exportXls(request, appSceneCostActual, AppSceneCostActual.class, "app_scene_cost_actual");
171
+    }
172
+
173
+    /**
174
+      * 通过excel导入数据
175
+    *
176
+    * @param request
177
+    * @param response
178
+    * @return
179
+    */
180
+    @RequiresPermissions("cost:app_scene_cost_actual:importExcel")
181
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
182
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
183
+        return super.importExcel(request, response, AppSceneCostActual.class);
184
+    }
185
+
186
+	 @ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
187
+	 @GetMapping(value = "/queryParent")
188
+	 public Result<List<String>> queryParent(@RequestParam(name="resultid", defaultValue="") int resultid,
189
+																@RequestParam(name="matnr", defaultValue="") String matnr) {
190
+		 List<String> vo = appSceneCostActualService.queryParent(resultid,matnr);
191
+		 return Result.OK(vo);
192
+	 }
193
+
194
+	 /* 根据物料号查询标准成本版本及订单号
195
+	  *
196
+	  * @param appSceneCostMiningResult
197
+	  * @param req
198
+	  * @return
199
+	  */
200
+	 //@AutoLog(value = "app_scene_cost_mining_result-分页列表查询")
201
+	 @ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
202
+	 @GetMapping(value = "/queryMatnrDetail")
203
+	 public Result<List<AppSceneCostSapZcorc>> queryMatnrDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
204
+																@RequestParam(name="matnr", defaultValue="") String matnr) {
205
+		 List<AppSceneCostSapZcorc> vo = appSceneCostActualService.queryMatnrDetail(resultid,matnr);
206
+		 return Result.OK(vo);
207
+	 }
208
+
209
+	 @ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
210
+	 @GetMapping(value = "/queryAufnrDetail")
211
+	 public Result<List<RealLaborVO>> queryAufnrDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
212
+																@RequestParam(name="matnr", defaultValue="") String matnr) {
213
+		 List<RealLaborVO> vo = appSceneCostActualService.queryAufnrDetail(resultid,matnr);
214
+		 return Result.OK(vo);
215
+	 }
216
+
217
+	 @ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
218
+	 @GetMapping(value = "/queryProduceDetail")
219
+	 public Result<List<RealProduceVO>> queryProduceDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
220
+													   @RequestParam(name="matnr", defaultValue="") String matnr) {
221
+		 List<RealProduceVO> vo = appSceneCostActualService.queryProduceDetail(resultid,matnr);
222
+		 return Result.OK(vo);
223
+	 }
224
+
225
+
226
+	 @ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
227
+	 @RequestMapping(value = "/exportMatnrDetail")
228
+	 public ModelAndView exportMatnrDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
229
+																@RequestParam(name="matnr", defaultValue="") String matnr) {
230
+		 return appSceneCostActualService.exportMatnrDetail(resultid,matnr);
231
+	 }
232
+
233
+	 @ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
234
+	 @RequestMapping(value = "/exportLaborDetail")
235
+	 public ModelAndView exportLaborDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
236
+										   @RequestParam(name="matnr", defaultValue="") String matnr) {
237
+		 return appSceneCostActualService.exportLaborDetail(resultid,matnr);
238
+	 }
239
+
240
+	 @ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
241
+	 @RequestMapping(value = "/exportProduceDetail")
242
+	 public ModelAndView exportProduceDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
243
+										   @RequestParam(name="matnr", defaultValue="") String matnr) {
244
+		 return appSceneCostActualService.exportProduceDetail(resultid,matnr);
245
+	 }
246
+
247
+
248
+ }

+ 179
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostAufnrMatnrController.java Просмотреть файл

@@ -0,0 +1,179 @@
1
+package com.zzsmart.qomo.kn.cost.manage.controller;
2
+
3
+import java.util.Arrays;
4
+import java.util.List;
5
+import java.util.Map;
6
+import java.util.stream.Collectors;
7
+import java.io.IOException;
8
+import java.io.UnsupportedEncodingException;
9
+import java.net.URLDecoder;
10
+import javax.servlet.http.HttpServletRequest;
11
+import javax.servlet.http.HttpServletResponse;
12
+
13
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostAufnrMatnr;
14
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostAufnrMatnrService;
15
+import org.jeecg.common.api.vo.Result;
16
+import org.jeecg.common.system.query.QueryGenerator;
17
+import org.jeecg.common.util.oConvertUtils;
18
+
19
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
20
+import com.baomidou.mybatisplus.core.metadata.IPage;
21
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
22
+import lombok.extern.slf4j.Slf4j;
23
+
24
+import org.jeecgframework.poi.excel.ExcelImportUtil;
25
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
26
+import org.jeecgframework.poi.excel.entity.ExportParams;
27
+import org.jeecgframework.poi.excel.entity.ImportParams;
28
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
29
+import org.jeecg.common.system.base.controller.JeecgController;
30
+import org.springframework.beans.factory.annotation.Autowired;
31
+import org.springframework.web.bind.annotation.*;
32
+import org.springframework.web.multipart.MultipartFile;
33
+import org.springframework.web.multipart.MultipartHttpServletRequest;
34
+import org.springframework.web.servlet.ModelAndView;
35
+import com.alibaba.fastjson.JSON;
36
+import io.swagger.annotations.Api;
37
+import io.swagger.annotations.ApiOperation;
38
+import org.jeecg.common.aspect.annotation.AutoLog;
39
+import org.apache.shiro.authz.annotation.RequiresPermissions;
40
+
41
+ /**
42
+ * @Description: app_scene_cost_aufnr_matnr
43
+ * @Author: jeecg-boot
44
+ * @Date:   2024-10-05
45
+ * @Version: V1.0
46
+ */
47
+@Api(tags="app_scene_cost_aufnr_matnr")
48
+@RestController
49
+@RequestMapping("/cost/appSceneCostAufnrMatnr")
50
+@Slf4j
51
+public class AppSceneCostAufnrMatnrController extends JeecgController<AppSceneCostAufnrMatnr, IAppSceneCostAufnrMatnrService> {
52
+	@Autowired
53
+	private IAppSceneCostAufnrMatnrService appSceneCostAufnrMatnrService;
54
+	
55
+	/**
56
+	 * 分页列表查询
57
+	 *
58
+	 * @param appSceneCostAufnrMatnr
59
+	 * @param pageNo
60
+	 * @param pageSize
61
+	 * @param req
62
+	 * @return
63
+	 */
64
+	//@AutoLog(value = "app_scene_cost_aufnr_matnr-分页列表查询")
65
+	@ApiOperation(value="app_scene_cost_aufnr_matnr-分页列表查询", notes="app_scene_cost_aufnr_matnr-分页列表查询")
66
+	@GetMapping(value = "/list")
67
+	public Result<IPage<AppSceneCostAufnrMatnr>> queryPageList(AppSceneCostAufnrMatnr appSceneCostAufnrMatnr,
68
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
69
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
70
+								   HttpServletRequest req) {
71
+		QueryWrapper<AppSceneCostAufnrMatnr> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostAufnrMatnr, req.getParameterMap());
72
+		Page<AppSceneCostAufnrMatnr> page = new Page<AppSceneCostAufnrMatnr>(pageNo, pageSize);
73
+		IPage<AppSceneCostAufnrMatnr> pageList = appSceneCostAufnrMatnrService.page(page, queryWrapper);
74
+		return Result.OK(pageList);
75
+	}
76
+	
77
+	/**
78
+	 *   添加
79
+	 *
80
+	 * @param appSceneCostAufnrMatnr
81
+	 * @return
82
+	 */
83
+	@AutoLog(value = "app_scene_cost_aufnr_matnr-添加")
84
+	@ApiOperation(value="app_scene_cost_aufnr_matnr-添加", notes="app_scene_cost_aufnr_matnr-添加")
85
+	@RequiresPermissions("cost:app_scene_cost_aufnr_matnr:add")
86
+	@PostMapping(value = "/add")
87
+	public Result<String> add(@RequestBody AppSceneCostAufnrMatnr appSceneCostAufnrMatnr) {
88
+		appSceneCostAufnrMatnrService.save(appSceneCostAufnrMatnr);
89
+		return Result.OK("添加成功!");
90
+	}
91
+	
92
+	/**
93
+	 *  编辑
94
+	 *
95
+	 * @param appSceneCostAufnrMatnr
96
+	 * @return
97
+	 */
98
+	@AutoLog(value = "app_scene_cost_aufnr_matnr-编辑")
99
+	@ApiOperation(value="app_scene_cost_aufnr_matnr-编辑", notes="app_scene_cost_aufnr_matnr-编辑")
100
+	@RequiresPermissions("cost:app_scene_cost_aufnr_matnr:edit")
101
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
102
+	public Result<String> edit(@RequestBody AppSceneCostAufnrMatnr appSceneCostAufnrMatnr) {
103
+		appSceneCostAufnrMatnrService.updateById(appSceneCostAufnrMatnr);
104
+		return Result.OK("编辑成功!");
105
+	}
106
+	
107
+	/**
108
+	 *   通过id删除
109
+	 *
110
+	 * @param id
111
+	 * @return
112
+	 */
113
+	@AutoLog(value = "app_scene_cost_aufnr_matnr-通过id删除")
114
+	@ApiOperation(value="app_scene_cost_aufnr_matnr-通过id删除", notes="app_scene_cost_aufnr_matnr-通过id删除")
115
+	@RequiresPermissions("cost:app_scene_cost_aufnr_matnr:delete")
116
+	@DeleteMapping(value = "/delete")
117
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
118
+		appSceneCostAufnrMatnrService.removeById(id);
119
+		return Result.OK("删除成功!");
120
+	}
121
+	
122
+	/**
123
+	 *  批量删除
124
+	 *
125
+	 * @param ids
126
+	 * @return
127
+	 */
128
+	@AutoLog(value = "app_scene_cost_aufnr_matnr-批量删除")
129
+	@ApiOperation(value="app_scene_cost_aufnr_matnr-批量删除", notes="app_scene_cost_aufnr_matnr-批量删除")
130
+	@RequiresPermissions("cost:app_scene_cost_aufnr_matnr:deleteBatch")
131
+	@DeleteMapping(value = "/deleteBatch")
132
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
133
+		this.appSceneCostAufnrMatnrService.removeByIds(Arrays.asList(ids.split(",")));
134
+		return Result.OK("批量删除成功!");
135
+	}
136
+	
137
+	/**
138
+	 * 通过id查询
139
+	 *
140
+	 * @param id
141
+	 * @return
142
+	 */
143
+	//@AutoLog(value = "app_scene_cost_aufnr_matnr-通过id查询")
144
+	@ApiOperation(value="app_scene_cost_aufnr_matnr-通过id查询", notes="app_scene_cost_aufnr_matnr-通过id查询")
145
+	@GetMapping(value = "/queryById")
146
+	public Result<AppSceneCostAufnrMatnr> queryById(@RequestParam(name="id",required=true) String id) {
147
+		AppSceneCostAufnrMatnr appSceneCostAufnrMatnr = appSceneCostAufnrMatnrService.getById(id);
148
+		if(appSceneCostAufnrMatnr==null) {
149
+			return Result.error("未找到对应数据");
150
+		}
151
+		return Result.OK(appSceneCostAufnrMatnr);
152
+	}
153
+
154
+    /**
155
+    * 导出excel
156
+    *
157
+    * @param request
158
+    * @param appSceneCostAufnrMatnr
159
+    */
160
+    @RequiresPermissions("cost:app_scene_cost_aufnr_matnr:exportXls")
161
+    @RequestMapping(value = "/exportXls")
162
+    public ModelAndView exportXls(HttpServletRequest request, AppSceneCostAufnrMatnr appSceneCostAufnrMatnr) {
163
+        return super.exportXls(request, appSceneCostAufnrMatnr, AppSceneCostAufnrMatnr.class, "app_scene_cost_aufnr_matnr");
164
+    }
165
+
166
+    /**
167
+      * 通过excel导入数据
168
+    *
169
+    * @param request
170
+    * @param response
171
+    * @return
172
+    */
173
+    @RequiresPermissions("cost:app_scene_cost_aufnr_matnr:importExcel")
174
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
175
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
176
+        return super.importExcel(request, response, AppSceneCostAufnrMatnr.class);
177
+    }
178
+
179
+}

+ 16
- 14
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostCountController.java Просмотреть файл

@@ -53,23 +53,24 @@ public class AppSceneCostCountController extends JeecgController<AppSceneCostCou
53 53
     //@AutoLog(value = "app_scene_cost_count-分页列表查询")
54 54
     @ApiOperation(value = "标准成本计算-分页列表查询", notes = "标准成本计算-分页列表查询")
55 55
     @GetMapping(value = "/list")
56
-    public Result<IPage<AppSceneCostCountVO>> queryPageList(AppSceneCostCount appSceneCostCount, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
56
+    public Result<IPage<AppSceneCostCount>> queryPageList(AppSceneCostCount appSceneCostCount, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
57 57
         QueryWrapper<AppSceneCostCount> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostCount, req.getParameterMap());
58 58
         queryWrapper.orderByDesc("create_time");
59 59
         Page<AppSceneCostCount> page = new Page<AppSceneCostCount>(pageNo, pageSize);
60 60
         IPage<AppSceneCostCount> pageList = appSceneCostCountService.page(page, queryWrapper);
61
-        IPage<AppSceneCostCountVO> pageList1 = new Page<>();
62
-        BeanUtils.copyProperties(pageList, pageList1);
63
-        List<AppSceneCostCountVO>list=new ArrayList<>();
64
-        for(int i=0;i<pageList.getRecords().size();i++){
65
-            AppSceneCostCount appSceneCostCount1 = pageList.getRecords().get(i);
66
-            AppSceneCostCountVO appSceneCostCountVO = new AppSceneCostCountVO();
67
-            BeanUtils.copyProperties(appSceneCostCount1, appSceneCostCountVO);
68
-            appSceneCostCountVO.setStatusName(CostCountStatusEnum.getTextByValue(appSceneCostCount1.getStatus()));
69
-            list.add(appSceneCostCountVO);
70
-        }
71
-        pageList1.setRecords(list);
72
-        return Result.OK(pageList1);
61
+        return Result.OK(pageList);
62
+        //IPage<AppSceneCostCountVO> pageList1 = new Page<>();
63
+        //BeanUtils.copyProperties(pageList, pageList1);
64
+//        List<AppSceneCostCountVO>list=new ArrayList<>();
65
+//        for(int i=0;i<pageList.getRecords().size();i++){
66
+//            AppSceneCostCount appSceneCostCount1 = pageList.getRecords().get(i);
67
+//            AppSceneCostCountVO appSceneCostCountVO = new AppSceneCostCountVO();
68
+//            BeanUtils.copyProperties(appSceneCostCount1, appSceneCostCountVO);
69
+//            appSceneCostCountVO.setStatusName(CostCountStatusEnum.getTextByValue(appSceneCostCount1.getStatus()));
70
+//            list.add(appSceneCostCountVO);
71
+//        }
72
+//        pageList1.setRecords(list);
73
+//        return Result.OK(pageList1);
73 74
     }
74 75
 
75 76
     /**
@@ -174,7 +175,8 @@ public class AppSceneCostCountController extends JeecgController<AppSceneCostCou
174 175
     //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_count:importExcel")
175 176
     @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
176 177
     public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
177
-        return super.importExcel(request, response, AppSceneCostCount.class);
178
+        //return super.importExcel(request, response, AppSceneCostCount.class);
179
+        return appSceneCostCountService.BatchCount(request,response);
178 180
     }
179 181
 
180 182
 }

+ 178
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostInvoiceController.java Просмотреть файл

@@ -0,0 +1,178 @@
1
+package com.zzsmart.qomo.kn.cost.manage.controller;
2
+
3
+import java.util.Arrays;
4
+import java.util.List;
5
+import java.util.Map;
6
+import java.util.stream.Collectors;
7
+import java.io.IOException;
8
+import java.io.UnsupportedEncodingException;
9
+import java.net.URLDecoder;
10
+import javax.servlet.http.HttpServletRequest;
11
+import javax.servlet.http.HttpServletResponse;
12
+import org.jeecg.common.api.vo.Result;
13
+import org.jeecg.common.system.query.QueryGenerator;
14
+import org.jeecg.common.util.oConvertUtils;
15
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostInvoice;
16
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostInvoiceService;
17
+
18
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
19
+import com.baomidou.mybatisplus.core.metadata.IPage;
20
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
21
+import lombok.extern.slf4j.Slf4j;
22
+
23
+import org.jeecgframework.poi.excel.ExcelImportUtil;
24
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
25
+import org.jeecgframework.poi.excel.entity.ExportParams;
26
+import org.jeecgframework.poi.excel.entity.ImportParams;
27
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
28
+import org.jeecg.common.system.base.controller.JeecgController;
29
+import org.springframework.beans.factory.annotation.Autowired;
30
+import org.springframework.web.bind.annotation.*;
31
+import org.springframework.web.multipart.MultipartFile;
32
+import org.springframework.web.multipart.MultipartHttpServletRequest;
33
+import org.springframework.web.servlet.ModelAndView;
34
+import com.alibaba.fastjson.JSON;
35
+import io.swagger.annotations.Api;
36
+import io.swagger.annotations.ApiOperation;
37
+import org.jeecg.common.aspect.annotation.AutoLog;
38
+import org.apache.shiro.authz.annotation.RequiresPermissions;
39
+
40
+ /**
41
+ * @Description: app_scene_cost_invoice
42
+ * @Author: jeecg-boot
43
+ * @Date:   2024-09-22
44
+ * @Version: V1.0
45
+ */
46
+@Api(tags="app_scene_cost_invoice")
47
+@RestController
48
+@RequestMapping("/cost/appSceneCostInvoice")
49
+@Slf4j
50
+public class AppSceneCostInvoiceController extends JeecgController<AppSceneCostInvoice, IAppSceneCostInvoiceService> {
51
+	@Autowired
52
+	private IAppSceneCostInvoiceService appSceneCostInvoiceService;
53
+	
54
+	/**
55
+	 * 分页列表查询
56
+	 *
57
+	 * @param appSceneCostInvoice
58
+	 * @param pageNo
59
+	 * @param pageSize
60
+	 * @param req
61
+	 * @return
62
+	 */
63
+	//@AutoLog(value = "app_scene_cost_invoice-分页列表查询")
64
+	@ApiOperation(value="app_scene_cost_invoice-分页列表查询", notes="app_scene_cost_invoice-分页列表查询")
65
+	@GetMapping(value = "/list")
66
+	public Result<IPage<AppSceneCostInvoice>> queryPageList(AppSceneCostInvoice appSceneCostInvoice,
67
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
68
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
69
+								   HttpServletRequest req) {
70
+		QueryWrapper<AppSceneCostInvoice> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostInvoice, req.getParameterMap());
71
+		Page<AppSceneCostInvoice> page = new Page<AppSceneCostInvoice>(pageNo, pageSize);
72
+		IPage<AppSceneCostInvoice> pageList = appSceneCostInvoiceService.page(page, queryWrapper);
73
+		return Result.OK(pageList);
74
+	}
75
+	
76
+	/**
77
+	 *   添加
78
+	 *
79
+	 * @param appSceneCostInvoice
80
+	 * @return
81
+	 */
82
+	@AutoLog(value = "app_scene_cost_invoice-添加")
83
+	@ApiOperation(value="app_scene_cost_invoice-添加", notes="app_scene_cost_invoice-添加")
84
+	@RequiresPermissions("cost:app_scene_cost_invoice:add")
85
+	@PostMapping(value = "/add")
86
+	public Result<String> add(@RequestBody AppSceneCostInvoice appSceneCostInvoice) {
87
+		appSceneCostInvoiceService.save(appSceneCostInvoice);
88
+		return Result.OK("添加成功!");
89
+	}
90
+	
91
+	/**
92
+	 *  编辑
93
+	 *
94
+	 * @param appSceneCostInvoice
95
+	 * @return
96
+	 */
97
+	@AutoLog(value = "app_scene_cost_invoice-编辑")
98
+	@ApiOperation(value="app_scene_cost_invoice-编辑", notes="app_scene_cost_invoice-编辑")
99
+	@RequiresPermissions("cost:app_scene_cost_invoice:edit")
100
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
101
+	public Result<String> edit(@RequestBody AppSceneCostInvoice appSceneCostInvoice) {
102
+		appSceneCostInvoiceService.updateById(appSceneCostInvoice);
103
+		return Result.OK("编辑成功!");
104
+	}
105
+	
106
+	/**
107
+	 *   通过id删除
108
+	 *
109
+	 * @param id
110
+	 * @return
111
+	 */
112
+	@AutoLog(value = "app_scene_cost_invoice-通过id删除")
113
+	@ApiOperation(value="app_scene_cost_invoice-通过id删除", notes="app_scene_cost_invoice-通过id删除")
114
+	@RequiresPermissions("cost:app_scene_cost_invoice:delete")
115
+	@DeleteMapping(value = "/delete")
116
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
117
+		appSceneCostInvoiceService.removeById(id);
118
+		return Result.OK("删除成功!");
119
+	}
120
+	
121
+	/**
122
+	 *  批量删除
123
+	 *
124
+	 * @param ids
125
+	 * @return
126
+	 */
127
+	@AutoLog(value = "app_scene_cost_invoice-批量删除")
128
+	@ApiOperation(value="app_scene_cost_invoice-批量删除", notes="app_scene_cost_invoice-批量删除")
129
+	@RequiresPermissions("cost:app_scene_cost_invoice:deleteBatch")
130
+	@DeleteMapping(value = "/deleteBatch")
131
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
132
+		this.appSceneCostInvoiceService.removeByIds(Arrays.asList(ids.split(",")));
133
+		return Result.OK("批量删除成功!");
134
+	}
135
+	
136
+	/**
137
+	 * 通过id查询
138
+	 *
139
+	 * @param id
140
+	 * @return
141
+	 */
142
+	//@AutoLog(value = "app_scene_cost_invoice-通过id查询")
143
+	@ApiOperation(value="app_scene_cost_invoice-通过id查询", notes="app_scene_cost_invoice-通过id查询")
144
+	@GetMapping(value = "/queryById")
145
+	public Result<AppSceneCostInvoice> queryById(@RequestParam(name="id",required=true) String id) {
146
+		AppSceneCostInvoice appSceneCostInvoice = appSceneCostInvoiceService.getById(id);
147
+		if(appSceneCostInvoice==null) {
148
+			return Result.error("未找到对应数据");
149
+		}
150
+		return Result.OK(appSceneCostInvoice);
151
+	}
152
+
153
+    /**
154
+    * 导出excel
155
+    *
156
+    * @param request
157
+    * @param appSceneCostInvoice
158
+    */
159
+    @RequiresPermissions("cost:app_scene_cost_invoice:exportXls")
160
+    @RequestMapping(value = "/exportXls")
161
+    public ModelAndView exportXls(HttpServletRequest request, AppSceneCostInvoice appSceneCostInvoice) {
162
+        return super.exportXls(request, appSceneCostInvoice, AppSceneCostInvoice.class, "app_scene_cost_invoice");
163
+    }
164
+
165
+    /**
166
+      * 通过excel导入数据
167
+    *
168
+    * @param request
169
+    * @param response
170
+    * @return
171
+    */
172
+    @RequiresPermissions("cost:app_scene_cost_invoice:importExcel")
173
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
174
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
175
+        return super.importExcel(request, response, AppSceneCostInvoice.class);
176
+    }
177
+
178
+}

+ 196
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningAufnrController.java Просмотреть файл

@@ -0,0 +1,196 @@
1
+package com.zzsmart.qomo.kn.cost.manage.controller;
2
+
3
+import java.util.Arrays;
4
+import java.util.List;
5
+import java.util.Map;
6
+import java.util.stream.Collectors;
7
+import java.io.IOException;
8
+import java.io.UnsupportedEncodingException;
9
+import java.net.URLDecoder;
10
+import javax.servlet.http.HttpServletRequest;
11
+import javax.servlet.http.HttpServletResponse;
12
+
13
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningAufnr;
14
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningAufnrService;
15
+import com.zzsmart.qomo.kn.cost.manage.vo.AufnrDiff;
16
+import com.zzsmart.qomo.kn.cost.manage.vo.AufnrExportVO;
17
+import com.zzsmart.qomo.kn.cost.manage.vo.LaborDiffVO;
18
+import com.zzsmart.qomo.kn.cost.manage.vo.ProduceDiffVO;
19
+import org.jeecg.common.api.vo.Result;
20
+import org.jeecg.common.system.query.QueryGenerator;
21
+import org.jeecg.common.util.oConvertUtils;
22
+
23
+
24
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
25
+import com.baomidou.mybatisplus.core.metadata.IPage;
26
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
27
+import lombok.extern.slf4j.Slf4j;
28
+
29
+import org.jeecgframework.poi.excel.ExcelImportUtil;
30
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
31
+import org.jeecgframework.poi.excel.entity.ExportParams;
32
+import org.jeecgframework.poi.excel.entity.ImportParams;
33
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
34
+import org.jeecg.common.system.base.controller.JeecgController;
35
+import org.springframework.beans.factory.annotation.Autowired;
36
+import org.springframework.web.bind.annotation.*;
37
+import org.springframework.web.multipart.MultipartFile;
38
+import org.springframework.web.multipart.MultipartHttpServletRequest;
39
+import org.springframework.web.servlet.ModelAndView;
40
+import com.alibaba.fastjson.JSON;
41
+import io.swagger.annotations.Api;
42
+import io.swagger.annotations.ApiOperation;
43
+import org.jeecg.common.aspect.annotation.AutoLog;
44
+import org.apache.shiro.authz.annotation.RequiresPermissions;
45
+
46
+ /**
47
+ * @Description: app_scene_cost_mining_aufnr
48
+ * @Author: jeecg-boot
49
+ * @Date:   2024-10-15
50
+ * @Version: V1.0
51
+ */
52
+@Api(tags="app_scene_cost_mining_aufnr")
53
+@RestController
54
+@RequestMapping("//appSceneCostMiningAufnr")
55
+@Slf4j
56
+public class AppSceneCostMiningAufnrController extends JeecgController<AppSceneCostMiningAufnr, IAppSceneCostMiningAufnrService> {
57
+	@Autowired
58
+	private IAppSceneCostMiningAufnrService appSceneCostMiningAufnrService;
59
+	
60
+	/**
61
+	 * 分页列表查询
62
+	 *
63
+	 * @param appSceneCostMiningAufnr
64
+	 * @param pageNo
65
+	 * @param pageSize
66
+	 * @param req
67
+	 * @return
68
+	 */
69
+	//@AutoLog(value = "app_scene_cost_mining_aufnr-分页列表查询")
70
+	@ApiOperation(value="app_scene_cost_mining_aufnr-分页列表查询", notes="app_scene_cost_mining_aufnr-分页列表查询")
71
+	@GetMapping(value = "/list")
72
+	public Result<IPage<AppSceneCostMiningAufnr>> queryPageList(AppSceneCostMiningAufnr appSceneCostMiningAufnr,
73
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
74
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
75
+								   HttpServletRequest req) {
76
+		QueryWrapper<AppSceneCostMiningAufnr> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningAufnr, req.getParameterMap());
77
+		Page<AppSceneCostMiningAufnr> page = new Page<AppSceneCostMiningAufnr>(pageNo, pageSize);
78
+		IPage<AppSceneCostMiningAufnr> pageList = appSceneCostMiningAufnrService.page(page, queryWrapper);
79
+		return Result.OK(pageList);
80
+	}
81
+	
82
+	/**
83
+	 *   添加
84
+	 *
85
+	 * @param appSceneCostMiningAufnr
86
+	 * @return
87
+	 */
88
+	@AutoLog(value = "app_scene_cost_mining_aufnr-添加")
89
+	@ApiOperation(value="app_scene_cost_mining_aufnr-添加", notes="app_scene_cost_mining_aufnr-添加")
90
+	@RequiresPermissions(":app_scene_cost_mining_aufnr:add")
91
+	@PostMapping(value = "/add")
92
+	public Result<String> add(@RequestBody AppSceneCostMiningAufnr appSceneCostMiningAufnr) {
93
+		appSceneCostMiningAufnrService.save(appSceneCostMiningAufnr);
94
+		return Result.OK("添加成功!");
95
+	}
96
+	
97
+	/**
98
+	 *  编辑
99
+	 *
100
+	 * @param appSceneCostMiningAufnr
101
+	 * @return
102
+	 */
103
+	@AutoLog(value = "app_scene_cost_mining_aufnr-编辑")
104
+	@ApiOperation(value="app_scene_cost_mining_aufnr-编辑", notes="app_scene_cost_mining_aufnr-编辑")
105
+	@RequiresPermissions(":app_scene_cost_mining_aufnr:edit")
106
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
107
+	public Result<String> edit(@RequestBody AppSceneCostMiningAufnr appSceneCostMiningAufnr) {
108
+		appSceneCostMiningAufnrService.updateById(appSceneCostMiningAufnr);
109
+		return Result.OK("编辑成功!");
110
+	}
111
+	
112
+	/**
113
+	 *   通过id删除
114
+	 *
115
+	 * @param id
116
+	 * @return
117
+	 */
118
+	@AutoLog(value = "app_scene_cost_mining_aufnr-通过id删除")
119
+	@ApiOperation(value="app_scene_cost_mining_aufnr-通过id删除", notes="app_scene_cost_mining_aufnr-通过id删除")
120
+	@RequiresPermissions(":app_scene_cost_mining_aufnr:delete")
121
+	@DeleteMapping(value = "/delete")
122
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
123
+		appSceneCostMiningAufnrService.removeById(id);
124
+		return Result.OK("删除成功!");
125
+	}
126
+	
127
+	/**
128
+	 *  批量删除
129
+	 *
130
+	 * @param ids
131
+	 * @return
132
+	 */
133
+	@AutoLog(value = "app_scene_cost_mining_aufnr-批量删除")
134
+	@ApiOperation(value="app_scene_cost_mining_aufnr-批量删除", notes="app_scene_cost_mining_aufnr-批量删除")
135
+	@RequiresPermissions(":app_scene_cost_mining_aufnr:deleteBatch")
136
+	@DeleteMapping(value = "/deleteBatch")
137
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
138
+		this.appSceneCostMiningAufnrService.removeByIds(Arrays.asList(ids.split(",")));
139
+		return Result.OK("批量删除成功!");
140
+	}
141
+	
142
+	/**
143
+	 * 通过id查询
144
+	 *
145
+	 * @param id
146
+	 * @return
147
+	 */
148
+	//@AutoLog(value = "app_scene_cost_mining_aufnr-通过id查询")
149
+	@ApiOperation(value="app_scene_cost_mining_aufnr-通过id查询", notes="app_scene_cost_mining_aufnr-通过id查询")
150
+	@GetMapping(value = "/queryLaborById")
151
+	public Result<List<LaborDiffVO> > queryLaborById(@RequestParam(name="id",required=true) int id) {
152
+		List<LaborDiffVO> appSceneCostMiningAufnr = appSceneCostMiningAufnrService.getLaborByResultid(id);
153
+		if(appSceneCostMiningAufnr==null) {
154
+			return Result.error("未找到对应数据");
155
+		}
156
+		return Result.OK(appSceneCostMiningAufnr);
157
+	}
158
+
159
+	 @ApiOperation(value="app_scene_cost_mining_aufnr-通过id查询", notes="app_scene_cost_mining_aufnr-通过id查询")
160
+	 @GetMapping(value = "/queryProduceById")
161
+	 public Result<List<ProduceDiffVO> > queryProduceById(@RequestParam(name="id",required=true) int id) {
162
+		 List<ProduceDiffVO> appSceneCostMiningAufnr = appSceneCostMiningAufnrService.getProduceByResultid(id);
163
+		 if(appSceneCostMiningAufnr==null) {
164
+			 return Result.error("未找到对应数据");
165
+		 }
166
+		 return Result.OK(appSceneCostMiningAufnr);
167
+	 }
168
+
169
+    /**
170
+    * 导出excel
171
+    *
172
+    * @param request
173
+    * @param appSceneCostMiningAufnr
174
+    */
175
+    //@RequiresPermissions(":app_scene_cost_mining_aufnr:exportXls")
176
+    @RequestMapping(value = "/exportXls")
177
+    public ModelAndView exportXls(HttpServletRequest request, AufnrExportVO appSceneCostMiningAufnr) {
178
+        return appSceneCostMiningAufnrService.exportXls2(request, appSceneCostMiningAufnr, AppSceneCostMiningAufnr.class, "人工制费差异");
179
+    }
180
+
181
+
182
+
183
+    /**
184
+      * 通过excel导入数据
185
+    *
186
+    * @param request
187
+    * @param response
188
+    * @return
189
+    */
190
+    @RequiresPermissions(":app_scene_cost_mining_aufnr:importExcel")
191
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
192
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
193
+        return super.importExcel(request, response, AppSceneCostMiningAufnr.class);
194
+    }
195
+
196
+}

+ 181
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningDiffController.java Просмотреть файл

@@ -0,0 +1,181 @@
1
+package com.zzsmart.qomo.kn.cost.manage.controller;
2
+
3
+import java.util.Arrays;
4
+import java.util.List;
5
+import java.util.Map;
6
+import java.util.stream.Collectors;
7
+import java.io.IOException;
8
+import java.io.UnsupportedEncodingException;
9
+import java.net.URLDecoder;
10
+import javax.servlet.http.HttpServletRequest;
11
+import javax.servlet.http.HttpServletResponse;
12
+
13
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningDiff;
14
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningDiffService;
15
+import com.zzsmart.qomo.kn.cost.manage.vo.MiningDiffTotalVO;
16
+import org.jeecg.common.api.vo.Result;
17
+import org.jeecg.common.system.query.QueryGenerator;
18
+import org.jeecg.common.util.oConvertUtils;
19
+
20
+
21
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
22
+import com.baomidou.mybatisplus.core.metadata.IPage;
23
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
24
+import lombok.extern.slf4j.Slf4j;
25
+
26
+import org.jeecgframework.poi.excel.ExcelImportUtil;
27
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
28
+import org.jeecgframework.poi.excel.entity.ExportParams;
29
+import org.jeecgframework.poi.excel.entity.ImportParams;
30
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
31
+import org.jeecg.common.system.base.controller.JeecgController;
32
+import org.springframework.beans.factory.annotation.Autowired;
33
+import org.springframework.web.bind.annotation.*;
34
+import org.springframework.web.multipart.MultipartFile;
35
+import org.springframework.web.multipart.MultipartHttpServletRequest;
36
+import org.springframework.web.servlet.ModelAndView;
37
+import com.alibaba.fastjson.JSON;
38
+import io.swagger.annotations.Api;
39
+import io.swagger.annotations.ApiOperation;
40
+import org.jeecg.common.aspect.annotation.AutoLog;
41
+import org.apache.shiro.authz.annotation.RequiresPermissions;
42
+
43
+ /**
44
+ * @Description: app_scene_cost_mining_diff
45
+ * @Author: jeecg-boot
46
+ * @Date:   2024-10-15
47
+ * @Version: V1.0
48
+ */
49
+@Api(tags="app_scene_cost_mining_diff")
50
+@RestController
51
+@RequestMapping("//appSceneCostMiningDiff")
52
+@Slf4j
53
+public class AppSceneCostMiningDiffController extends JeecgController<AppSceneCostMiningDiff, IAppSceneCostMiningDiffService> {
54
+	@Autowired
55
+	private IAppSceneCostMiningDiffService appSceneCostMiningDiffService;
56
+	
57
+	/**
58
+	 * 分页列表查询
59
+	 *
60
+	 * @param appSceneCostMiningDiff
61
+	 * @param pageNo
62
+	 * @param pageSize
63
+	 * @param req
64
+	 * @return
65
+	 */
66
+	//@AutoLog(value = "app_scene_cost_mining_diff-分页列表查询")
67
+	@ApiOperation(value="app_scene_cost_mining_diff-分页列表查询", notes="app_scene_cost_mining_diff-分页列表查询")
68
+	@GetMapping(value = "/list")
69
+	public Result<IPage<AppSceneCostMiningDiff>> queryPageList(AppSceneCostMiningDiff appSceneCostMiningDiff,
70
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
71
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
72
+								   HttpServletRequest req) {
73
+		QueryWrapper<AppSceneCostMiningDiff> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningDiff, req.getParameterMap());
74
+		Page<AppSceneCostMiningDiff> page = new Page<AppSceneCostMiningDiff>(pageNo, pageSize);
75
+		IPage<AppSceneCostMiningDiff> pageList = appSceneCostMiningDiffService.page(page, queryWrapper);
76
+		return Result.OK(pageList);
77
+	}
78
+	
79
+	/**
80
+	 *   添加
81
+	 *
82
+	 * @param appSceneCostMiningDiff
83
+	 * @return
84
+	 */
85
+	@AutoLog(value = "app_scene_cost_mining_diff-添加")
86
+	@ApiOperation(value="app_scene_cost_mining_diff-添加", notes="app_scene_cost_mining_diff-添加")
87
+	@RequiresPermissions(":app_scene_cost_mining_diff:add")
88
+	@PostMapping(value = "/add")
89
+	public Result<String> add(@RequestBody AppSceneCostMiningDiff appSceneCostMiningDiff) {
90
+		appSceneCostMiningDiffService.save(appSceneCostMiningDiff);
91
+		return Result.OK("添加成功!");
92
+	}
93
+	
94
+	/**
95
+	 *  编辑
96
+	 *
97
+	 * @param appSceneCostMiningDiff
98
+	 * @return
99
+	 */
100
+	@AutoLog(value = "app_scene_cost_mining_diff-编辑")
101
+	@ApiOperation(value="app_scene_cost_mining_diff-编辑", notes="app_scene_cost_mining_diff-编辑")
102
+	@RequiresPermissions(":app_scene_cost_mining_diff:edit")
103
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
104
+	public Result<String> edit(@RequestBody AppSceneCostMiningDiff appSceneCostMiningDiff) {
105
+		appSceneCostMiningDiffService.updateById(appSceneCostMiningDiff);
106
+		return Result.OK("编辑成功!");
107
+	}
108
+	
109
+	/**
110
+	 *   通过id删除
111
+	 *
112
+	 * @param id
113
+	 * @return
114
+	 */
115
+	@AutoLog(value = "app_scene_cost_mining_diff-通过id删除")
116
+	@ApiOperation(value="app_scene_cost_mining_diff-通过id删除", notes="app_scene_cost_mining_diff-通过id删除")
117
+	@RequiresPermissions(":app_scene_cost_mining_diff:delete")
118
+	@DeleteMapping(value = "/delete")
119
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
120
+		appSceneCostMiningDiffService.removeById(id);
121
+		return Result.OK("删除成功!");
122
+	}
123
+	
124
+	/**
125
+	 *  批量删除
126
+	 *
127
+	 * @param ids
128
+	 * @return
129
+	 */
130
+	@AutoLog(value = "app_scene_cost_mining_diff-批量删除")
131
+	@ApiOperation(value="app_scene_cost_mining_diff-批量删除", notes="app_scene_cost_mining_diff-批量删除")
132
+	@RequiresPermissions(":app_scene_cost_mining_diff:deleteBatch")
133
+	@DeleteMapping(value = "/deleteBatch")
134
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
135
+		this.appSceneCostMiningDiffService.removeByIds(Arrays.asList(ids.split(",")));
136
+		return Result.OK("批量删除成功!");
137
+	}
138
+	
139
+	/**
140
+	 * 通过id查询
141
+	 *
142
+	 * @param id
143
+	 * @return
144
+	 */
145
+	//@AutoLog(value = "app_scene_cost_mining_diff-通过id查询")
146
+	@ApiOperation(value="app_scene_cost_mining_diff-通过id查询", notes="app_scene_cost_mining_diff-通过id查询")
147
+	@GetMapping(value = "/queryById")
148
+	public Result<List<MiningDiffTotalVO>> queryById(@RequestParam(name="id",required=true) int id) {
149
+		List<MiningDiffTotalVO> appSceneCostMiningDiff = appSceneCostMiningDiffService.getMiningDiffTotalById(id);
150
+		if(appSceneCostMiningDiff==null) {
151
+			return Result.error("未找到对应数据");
152
+		}
153
+		return Result.OK(appSceneCostMiningDiff);
154
+	}
155
+
156
+    /**
157
+    * 导出excel
158
+    *
159
+    * @param request
160
+    * @param appSceneCostMiningDiff
161
+    */
162
+    @RequiresPermissions(":app_scene_cost_mining_diff:exportXls")
163
+    @RequestMapping(value = "/exportXls")
164
+    public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningDiff appSceneCostMiningDiff) {
165
+        return super.exportXls(request, appSceneCostMiningDiff, AppSceneCostMiningDiff.class, "app_scene_cost_mining_diff");
166
+    }
167
+
168
+    /**
169
+      * 通过excel导入数据
170
+    *
171
+    * @param request
172
+    * @param response
173
+    * @return
174
+    */
175
+    @RequiresPermissions(":app_scene_cost_mining_diff:importExcel")
176
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
177
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
178
+        return super.importExcel(request, response, AppSceneCostMiningDiff.class);
179
+    }
180
+
181
+}

+ 179
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningLaborController.java Просмотреть файл

@@ -0,0 +1,179 @@
1
+package com.zzsmart.qomo.kn.cost.manage.controller;
2
+
3
+import java.util.Arrays;
4
+import java.util.List;
5
+import java.util.Map;
6
+import java.util.stream.Collectors;
7
+import java.io.IOException;
8
+import java.io.UnsupportedEncodingException;
9
+import java.net.URLDecoder;
10
+import javax.servlet.http.HttpServletRequest;
11
+import javax.servlet.http.HttpServletResponse;
12
+
13
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningLabor;
14
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningLaborService;
15
+import org.jeecg.common.api.vo.Result;
16
+import org.jeecg.common.system.query.QueryGenerator;
17
+import org.jeecg.common.util.oConvertUtils;
18
+
19
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
20
+import com.baomidou.mybatisplus.core.metadata.IPage;
21
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
22
+import lombok.extern.slf4j.Slf4j;
23
+
24
+import org.jeecgframework.poi.excel.ExcelImportUtil;
25
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
26
+import org.jeecgframework.poi.excel.entity.ExportParams;
27
+import org.jeecgframework.poi.excel.entity.ImportParams;
28
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
29
+import org.jeecg.common.system.base.controller.JeecgController;
30
+import org.springframework.beans.factory.annotation.Autowired;
31
+import org.springframework.web.bind.annotation.*;
32
+import org.springframework.web.multipart.MultipartFile;
33
+import org.springframework.web.multipart.MultipartHttpServletRequest;
34
+import org.springframework.web.servlet.ModelAndView;
35
+import com.alibaba.fastjson.JSON;
36
+import io.swagger.annotations.Api;
37
+import io.swagger.annotations.ApiOperation;
38
+import org.jeecg.common.aspect.annotation.AutoLog;
39
+import org.apache.shiro.authz.annotation.RequiresPermissions;
40
+
41
+ /**
42
+ * @Description: app_scene_cost_mining_labor
43
+ * @Author: jeecg-boot
44
+ * @Date:   2024-11-05
45
+ * @Version: V1.0
46
+ */
47
+@Api(tags="app_scene_cost_mining_labor")
48
+@RestController
49
+@RequestMapping("//appSceneCostMiningLabor")
50
+@Slf4j
51
+public class AppSceneCostMiningLaborController extends JeecgController<AppSceneCostMiningLabor, IAppSceneCostMiningLaborService> {
52
+	@Autowired
53
+	private IAppSceneCostMiningLaborService appSceneCostMiningLaborService;
54
+	
55
+	/**
56
+	 * 分页列表查询
57
+	 *
58
+	 * @param appSceneCostMiningLabor
59
+	 * @param pageNo
60
+	 * @param pageSize
61
+	 * @param req
62
+	 * @return
63
+	 */
64
+	//@AutoLog(value = "app_scene_cost_mining_labor-分页列表查询")
65
+	@ApiOperation(value="app_scene_cost_mining_labor-分页列表查询", notes="app_scene_cost_mining_labor-分页列表查询")
66
+	@GetMapping(value = "/list")
67
+	public Result<IPage<AppSceneCostMiningLabor>> queryPageList(AppSceneCostMiningLabor appSceneCostMiningLabor,
68
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
69
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
70
+								   HttpServletRequest req) {
71
+		QueryWrapper<AppSceneCostMiningLabor> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningLabor, req.getParameterMap());
72
+		Page<AppSceneCostMiningLabor> page = new Page<AppSceneCostMiningLabor>(pageNo, pageSize);
73
+		IPage<AppSceneCostMiningLabor> pageList = appSceneCostMiningLaborService.page(page, queryWrapper);
74
+		return Result.OK(pageList);
75
+	}
76
+	
77
+	/**
78
+	 *   添加
79
+	 *
80
+	 * @param appSceneCostMiningLabor
81
+	 * @return
82
+	 */
83
+	@AutoLog(value = "app_scene_cost_mining_labor-添加")
84
+	@ApiOperation(value="app_scene_cost_mining_labor-添加", notes="app_scene_cost_mining_labor-添加")
85
+	@RequiresPermissions(":app_scene_cost_mining_labor:add")
86
+	@PostMapping(value = "/add")
87
+	public Result<String> add(@RequestBody AppSceneCostMiningLabor appSceneCostMiningLabor) {
88
+		appSceneCostMiningLaborService.save(appSceneCostMiningLabor);
89
+		return Result.OK("添加成功!");
90
+	}
91
+	
92
+	/**
93
+	 *  编辑
94
+	 *
95
+	 * @param appSceneCostMiningLabor
96
+	 * @return
97
+	 */
98
+	@AutoLog(value = "app_scene_cost_mining_labor-编辑")
99
+	@ApiOperation(value="app_scene_cost_mining_labor-编辑", notes="app_scene_cost_mining_labor-编辑")
100
+	@RequiresPermissions(":app_scene_cost_mining_labor:edit")
101
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
102
+	public Result<String> edit(@RequestBody AppSceneCostMiningLabor appSceneCostMiningLabor) {
103
+		appSceneCostMiningLaborService.updateById(appSceneCostMiningLabor);
104
+		return Result.OK("编辑成功!");
105
+	}
106
+	
107
+	/**
108
+	 *   通过id删除
109
+	 *
110
+	 * @param id
111
+	 * @return
112
+	 */
113
+	@AutoLog(value = "app_scene_cost_mining_labor-通过id删除")
114
+	@ApiOperation(value="app_scene_cost_mining_labor-通过id删除", notes="app_scene_cost_mining_labor-通过id删除")
115
+	@RequiresPermissions(":app_scene_cost_mining_labor:delete")
116
+	@DeleteMapping(value = "/delete")
117
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
118
+		appSceneCostMiningLaborService.removeById(id);
119
+		return Result.OK("删除成功!");
120
+	}
121
+	
122
+	/**
123
+	 *  批量删除
124
+	 *
125
+	 * @param ids
126
+	 * @return
127
+	 */
128
+	@AutoLog(value = "app_scene_cost_mining_labor-批量删除")
129
+	@ApiOperation(value="app_scene_cost_mining_labor-批量删除", notes="app_scene_cost_mining_labor-批量删除")
130
+	@RequiresPermissions(":app_scene_cost_mining_labor:deleteBatch")
131
+	@DeleteMapping(value = "/deleteBatch")
132
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
133
+		this.appSceneCostMiningLaborService.removeByIds(Arrays.asList(ids.split(",")));
134
+		return Result.OK("批量删除成功!");
135
+	}
136
+	
137
+	/**
138
+	 * 通过id查询
139
+	 *
140
+	 * @param id
141
+	 * @return
142
+	 */
143
+	//@AutoLog(value = "app_scene_cost_mining_labor-通过id查询")
144
+	@ApiOperation(value="app_scene_cost_mining_labor-通过id查询", notes="app_scene_cost_mining_labor-通过id查询")
145
+	@GetMapping(value = "/queryById")
146
+	public Result<AppSceneCostMiningLabor> queryById(@RequestParam(name="id",required=true) String id) {
147
+		AppSceneCostMiningLabor appSceneCostMiningLabor = appSceneCostMiningLaborService.getById(id);
148
+		if(appSceneCostMiningLabor==null) {
149
+			return Result.error("未找到对应数据");
150
+		}
151
+		return Result.OK(appSceneCostMiningLabor);
152
+	}
153
+
154
+    /**
155
+    * 导出excel
156
+    *
157
+    * @param request
158
+    * @param appSceneCostMiningLabor
159
+    */
160
+    @RequiresPermissions(":app_scene_cost_mining_labor:exportXls")
161
+    @RequestMapping(value = "/exportXls")
162
+    public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningLabor appSceneCostMiningLabor) {
163
+        return super.exportXls(request, appSceneCostMiningLabor, AppSceneCostMiningLabor.class, "app_scene_cost_mining_labor");
164
+    }
165
+
166
+    /**
167
+      * 通过excel导入数据
168
+    *
169
+    * @param request
170
+    * @param response
171
+    * @return
172
+    */
173
+    @RequiresPermissions(":app_scene_cost_mining_labor:importExcel")
174
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
175
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
176
+        return super.importExcel(request, response, AppSceneCostMiningLabor.class);
177
+    }
178
+
179
+}

+ 184
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningMaterialController.java Просмотреть файл

@@ -0,0 +1,184 @@
1
+package com.zzsmart.qomo.kn.cost.manage.controller;
2
+
3
+import java.util.Arrays;
4
+import java.util.List;
5
+import java.util.Map;
6
+import java.util.stream.Collectors;
7
+import java.io.IOException;
8
+import java.io.UnsupportedEncodingException;
9
+import java.net.URLDecoder;
10
+import javax.servlet.http.HttpServletRequest;
11
+import javax.servlet.http.HttpServletResponse;
12
+
13
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningMaterial;
14
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningMaterialService;
15
+import com.zzsmart.qomo.kn.cost.manage.vo.MaterialDiff;
16
+import com.zzsmart.qomo.kn.cost.manage.vo.MiningDiffTotalVO;
17
+import org.jeecg.common.api.vo.Result;
18
+import org.jeecg.common.system.query.QueryGenerator;
19
+import org.jeecg.common.util.oConvertUtils;
20
+
21
+
22
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
23
+import com.baomidou.mybatisplus.core.metadata.IPage;
24
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
25
+import lombok.extern.slf4j.Slf4j;
26
+
27
+import org.jeecgframework.poi.excel.ExcelImportUtil;
28
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
29
+import org.jeecgframework.poi.excel.entity.ExportParams;
30
+import org.jeecgframework.poi.excel.entity.ImportParams;
31
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
32
+import org.jeecg.common.system.base.controller.JeecgController;
33
+import org.springframework.beans.factory.annotation.Autowired;
34
+import org.springframework.web.bind.annotation.*;
35
+import org.springframework.web.multipart.MultipartFile;
36
+import org.springframework.web.multipart.MultipartHttpServletRequest;
37
+import org.springframework.web.servlet.ModelAndView;
38
+import com.alibaba.fastjson.JSON;
39
+import io.swagger.annotations.Api;
40
+import io.swagger.annotations.ApiOperation;
41
+import org.jeecg.common.aspect.annotation.AutoLog;
42
+import org.apache.shiro.authz.annotation.RequiresPermissions;
43
+
44
+ /**
45
+ * @Description: app_scene_cost_mining_material
46
+ * @Author: jeecg-boot
47
+ * @Date:   2024-10-15
48
+ * @Version: V1.0
49
+ */
50
+@Api(tags="app_scene_cost_mining_material")
51
+@RestController
52
+@RequestMapping("//appSceneCostMiningMaterial")
53
+@Slf4j
54
+public class AppSceneCostMiningMaterialController extends JeecgController<AppSceneCostMiningMaterial, IAppSceneCostMiningMaterialService> {
55
+	@Autowired
56
+	private IAppSceneCostMiningMaterialService appSceneCostMiningMaterialService;
57
+	
58
+	/**
59
+	 * 分页列表查询
60
+	 *
61
+	 * @param appSceneCostMiningMaterial
62
+	 * @param pageNo
63
+	 * @param pageSize
64
+	 * @param req
65
+	 * @return
66
+	 */
67
+	//@AutoLog(value = "app_scene_cost_mining_material-分页列表查询")
68
+	@ApiOperation(value="app_scene_cost_mining_material-分页列表查询", notes="app_scene_cost_mining_material-分页列表查询")
69
+	@GetMapping(value = "/list")
70
+	public Result<IPage<AppSceneCostMiningMaterial>> queryPageList(AppSceneCostMiningMaterial appSceneCostMiningMaterial,
71
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
72
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
73
+								   HttpServletRequest req) {
74
+		QueryWrapper<AppSceneCostMiningMaterial> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningMaterial, req.getParameterMap());
75
+		Page<AppSceneCostMiningMaterial> page = new Page<AppSceneCostMiningMaterial>(pageNo, pageSize);
76
+		IPage<AppSceneCostMiningMaterial> pageList = appSceneCostMiningMaterialService.page(page, queryWrapper);
77
+		return Result.OK(pageList);
78
+	}
79
+	
80
+	/**
81
+	 *   添加
82
+	 *
83
+	 * @param appSceneCostMiningMaterial
84
+	 * @return
85
+	 */
86
+	@AutoLog(value = "app_scene_cost_mining_material-添加")
87
+	@ApiOperation(value="app_scene_cost_mining_material-添加", notes="app_scene_cost_mining_material-添加")
88
+	@RequiresPermissions(":app_scene_cost_mining_material:add")
89
+	@PostMapping(value = "/add")
90
+	public Result<String> add(@RequestBody AppSceneCostMiningMaterial appSceneCostMiningMaterial) {
91
+		appSceneCostMiningMaterialService.save(appSceneCostMiningMaterial);
92
+		return Result.OK("添加成功!");
93
+	}
94
+	
95
+	/**
96
+	 *  编辑
97
+	 *
98
+	 * @param appSceneCostMiningMaterial
99
+	 * @return
100
+	 */
101
+	@AutoLog(value = "app_scene_cost_mining_material-编辑")
102
+	@ApiOperation(value="app_scene_cost_mining_material-编辑", notes="app_scene_cost_mining_material-编辑")
103
+	@RequiresPermissions(":app_scene_cost_mining_material:edit")
104
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
105
+	public Result<String> edit(@RequestBody AppSceneCostMiningMaterial appSceneCostMiningMaterial) {
106
+		appSceneCostMiningMaterialService.updateById(appSceneCostMiningMaterial);
107
+		return Result.OK("编辑成功!");
108
+	}
109
+	
110
+	/**
111
+	 *   通过id删除
112
+	 *
113
+	 * @param id
114
+	 * @return
115
+	 */
116
+	@AutoLog(value = "app_scene_cost_mining_material-通过id删除")
117
+	@ApiOperation(value="app_scene_cost_mining_material-通过id删除", notes="app_scene_cost_mining_material-通过id删除")
118
+	@RequiresPermissions(":app_scene_cost_mining_material:delete")
119
+	@DeleteMapping(value = "/delete")
120
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
121
+		appSceneCostMiningMaterialService.removeById(id);
122
+		return Result.OK("删除成功!");
123
+	}
124
+	
125
+	/**
126
+	 *  批量删除
127
+	 *
128
+	 * @param ids
129
+	 * @return
130
+	 */
131
+	@AutoLog(value = "app_scene_cost_mining_material-批量删除")
132
+	@ApiOperation(value="app_scene_cost_mining_material-批量删除", notes="app_scene_cost_mining_material-批量删除")
133
+	@RequiresPermissions(":app_scene_cost_mining_material:deleteBatch")
134
+	@DeleteMapping(value = "/deleteBatch")
135
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
136
+		this.appSceneCostMiningMaterialService.removeByIds(Arrays.asList(ids.split(",")));
137
+		return Result.OK("批量删除成功!");
138
+	}
139
+	
140
+	/**
141
+	 * 通过id查询
142
+	 *
143
+	 * @param id
144
+	 * @return
145
+	 */
146
+	//@AutoLog(value = "app_scene_cost_mining_material-通过id查询")
147
+	@ApiOperation(value="app_scene_cost_mining_material-通过id查询", notes="app_scene_cost_mining_material-通过id查询")
148
+	@GetMapping(value = "/queryById")
149
+	public Result<List<MaterialDiff>> queryById(@RequestParam(name="id",required=true) int id) {
150
+		List<MaterialDiff> appSceneCostMiningMaterial = appSceneCostMiningMaterialService.getByResultid(id);
151
+		if(appSceneCostMiningMaterial==null) {
152
+			return Result.error("未找到对应数据");
153
+		}
154
+		return Result.OK(appSceneCostMiningMaterial);
155
+	}
156
+
157
+    /**
158
+    * 导出excel
159
+    *
160
+    * @param request
161
+    * @param appSceneCostMiningMaterial
162
+    */
163
+    //@RequiresPermissions(":app_scene_cost_mining_material:exportXls")
164
+    @GetMapping(value = "/exportXls")
165
+	@ApiOperation(value = "cost-材料差异导出", notes = "cost-材料差异导出")
166
+    public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningMaterial appSceneCostMiningMaterial) {
167
+        //return  super.exportXls(request)
168
+		return appSceneCostMiningMaterialService.exportXls2(request, appSceneCostMiningMaterial,AppSceneCostMiningMaterial.class,  "材料差异明细");
169
+    }
170
+
171
+    /**
172
+      * 通过excel导入数据
173
+    *
174
+    * @param request
175
+    * @param response
176
+    * @return
177
+    */
178
+    @RequiresPermissions(":app_scene_cost_mining_material:importExcel")
179
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
180
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
181
+        return super.importExcel(request, response, AppSceneCostMiningMaterial.class);
182
+    }
183
+
184
+}

+ 179
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningReasonController.java Просмотреть файл

@@ -0,0 +1,179 @@
1
+package com.zzsmart.qomo.kn.cost.manage.controller;
2
+
3
+import java.util.Arrays;
4
+import java.util.List;
5
+import java.util.Map;
6
+import java.util.stream.Collectors;
7
+import java.io.IOException;
8
+import java.io.UnsupportedEncodingException;
9
+import java.net.URLDecoder;
10
+import javax.servlet.http.HttpServletRequest;
11
+import javax.servlet.http.HttpServletResponse;
12
+
13
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningReason;
14
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningReasonService;
15
+import org.jeecg.common.api.vo.Result;
16
+import org.jeecg.common.system.query.QueryGenerator;
17
+import org.jeecg.common.util.oConvertUtils;
18
+
19
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
20
+import com.baomidou.mybatisplus.core.metadata.IPage;
21
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
22
+import lombok.extern.slf4j.Slf4j;
23
+
24
+import org.jeecgframework.poi.excel.ExcelImportUtil;
25
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
26
+import org.jeecgframework.poi.excel.entity.ExportParams;
27
+import org.jeecgframework.poi.excel.entity.ImportParams;
28
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
29
+import org.jeecg.common.system.base.controller.JeecgController;
30
+import org.springframework.beans.factory.annotation.Autowired;
31
+import org.springframework.web.bind.annotation.*;
32
+import org.springframework.web.multipart.MultipartFile;
33
+import org.springframework.web.multipart.MultipartHttpServletRequest;
34
+import org.springframework.web.servlet.ModelAndView;
35
+import com.alibaba.fastjson.JSON;
36
+import io.swagger.annotations.Api;
37
+import io.swagger.annotations.ApiOperation;
38
+import org.jeecg.common.aspect.annotation.AutoLog;
39
+import org.apache.shiro.authz.annotation.RequiresPermissions;
40
+
41
+ /**
42
+ * @Description: app_scene_cost_mining_reason
43
+ * @Author: jeecg-boot
44
+ * @Date:   2024-10-15
45
+ * @Version: V1.0
46
+ */
47
+@Api(tags="app_scene_cost_mining_reason")
48
+@RestController
49
+@RequestMapping("//appSceneCostMiningReason")
50
+@Slf4j
51
+public class AppSceneCostMiningReasonController extends JeecgController<AppSceneCostMiningReason, IAppSceneCostMiningReasonService> {
52
+	@Autowired
53
+	private IAppSceneCostMiningReasonService appSceneCostMiningReasonService;
54
+	
55
+	/**
56
+	 * 分页列表查询
57
+	 *
58
+	 * @param appSceneCostMiningReason
59
+	 * @param pageNo
60
+	 * @param pageSize
61
+	 * @param req
62
+	 * @return
63
+	 */
64
+	//@AutoLog(value = "app_scene_cost_mining_reason-分页列表查询")
65
+	@ApiOperation(value="app_scene_cost_mining_reason-分页列表查询", notes="app_scene_cost_mining_reason-分页列表查询")
66
+	@GetMapping(value = "/list")
67
+	public Result<IPage<AppSceneCostMiningReason>> queryPageList(AppSceneCostMiningReason appSceneCostMiningReason,
68
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
69
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
70
+								   HttpServletRequest req) {
71
+		QueryWrapper<AppSceneCostMiningReason> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningReason, req.getParameterMap());
72
+		Page<AppSceneCostMiningReason> page = new Page<AppSceneCostMiningReason>(pageNo, pageSize);
73
+		IPage<AppSceneCostMiningReason> pageList = appSceneCostMiningReasonService.page(page, queryWrapper);
74
+		return Result.OK(pageList);
75
+	}
76
+	
77
+	/**
78
+	 *   添加
79
+	 *
80
+	 * @param appSceneCostMiningReason
81
+	 * @return
82
+	 */
83
+	@AutoLog(value = "app_scene_cost_mining_reason-添加")
84
+	@ApiOperation(value="app_scene_cost_mining_reason-添加", notes="app_scene_cost_mining_reason-添加")
85
+	@RequiresPermissions(":app_scene_cost_mining_reason:add")
86
+	@PostMapping(value = "/add")
87
+	public Result<String> add(@RequestBody AppSceneCostMiningReason appSceneCostMiningReason) {
88
+		appSceneCostMiningReasonService.save(appSceneCostMiningReason);
89
+		return Result.OK("添加成功!");
90
+	}
91
+	
92
+	/**
93
+	 *  编辑
94
+	 *
95
+	 * @param appSceneCostMiningReason
96
+	 * @return
97
+	 */
98
+	@AutoLog(value = "app_scene_cost_mining_reason-编辑")
99
+	@ApiOperation(value="app_scene_cost_mining_reason-编辑", notes="app_scene_cost_mining_reason-编辑")
100
+	@RequiresPermissions(":app_scene_cost_mining_reason:edit")
101
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
102
+	public Result<String> edit(@RequestBody AppSceneCostMiningReason appSceneCostMiningReason) {
103
+		appSceneCostMiningReasonService.updateById(appSceneCostMiningReason);
104
+		return Result.OK("编辑成功!");
105
+	}
106
+	
107
+	/**
108
+	 *   通过id删除
109
+	 *
110
+	 * @param id
111
+	 * @return
112
+	 */
113
+	@AutoLog(value = "app_scene_cost_mining_reason-通过id删除")
114
+	@ApiOperation(value="app_scene_cost_mining_reason-通过id删除", notes="app_scene_cost_mining_reason-通过id删除")
115
+	@RequiresPermissions(":app_scene_cost_mining_reason:delete")
116
+	@DeleteMapping(value = "/delete")
117
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
118
+		appSceneCostMiningReasonService.removeById(id);
119
+		return Result.OK("删除成功!");
120
+	}
121
+	
122
+	/**
123
+	 *  批量删除
124
+	 *
125
+	 * @param ids
126
+	 * @return
127
+	 */
128
+	@AutoLog(value = "app_scene_cost_mining_reason-批量删除")
129
+	@ApiOperation(value="app_scene_cost_mining_reason-批量删除", notes="app_scene_cost_mining_reason-批量删除")
130
+	@RequiresPermissions(":app_scene_cost_mining_reason:deleteBatch")
131
+	@DeleteMapping(value = "/deleteBatch")
132
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
133
+		this.appSceneCostMiningReasonService.removeByIds(Arrays.asList(ids.split(",")));
134
+		return Result.OK("批量删除成功!");
135
+	}
136
+	
137
+	/**
138
+	 * 通过id查询
139
+	 *
140
+	 * @param id
141
+	 * @return
142
+	 */
143
+	//@AutoLog(value = "app_scene_cost_mining_reason-通过id查询")
144
+	@ApiOperation(value="app_scene_cost_mining_reason-通过id查询", notes="app_scene_cost_mining_reason-通过id查询")
145
+	@GetMapping(value = "/queryById")
146
+	public Result<AppSceneCostMiningReason> queryById(@RequestParam(name="id",required=true) String id) {
147
+		AppSceneCostMiningReason appSceneCostMiningReason = appSceneCostMiningReasonService.getById(id);
148
+		if(appSceneCostMiningReason==null) {
149
+			return Result.error("未找到对应数据");
150
+		}
151
+		return Result.OK(appSceneCostMiningReason);
152
+	}
153
+
154
+    /**
155
+    * 导出excel
156
+    *
157
+    * @param request
158
+    * @param appSceneCostMiningReason
159
+    */
160
+    @RequiresPermissions(":app_scene_cost_mining_reason:exportXls")
161
+    @RequestMapping(value = "/exportXls")
162
+    public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningReason appSceneCostMiningReason) {
163
+        return super.exportXls(request, appSceneCostMiningReason, AppSceneCostMiningReason.class, "app_scene_cost_mining_reason");
164
+    }
165
+
166
+    /**
167
+      * 通过excel导入数据
168
+    *
169
+    * @param request
170
+    * @param response
171
+    * @return
172
+    */
173
+    @RequiresPermissions(":app_scene_cost_mining_reason:importExcel")
174
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
175
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
176
+        return super.importExcel(request, response, AppSceneCostMiningReason.class);
177
+    }
178
+
179
+}

+ 213
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningResultController.java Просмотреть файл

@@ -0,0 +1,213 @@
1
+package com.zzsmart.qomo.kn.cost.manage.controller;
2
+
3
+import java.util.Arrays;
4
+import java.util.Date;
5
+import java.util.List;
6
+import java.util.Map;
7
+import java.util.stream.Collectors;
8
+import java.io.IOException;
9
+import java.io.UnsupportedEncodingException;
10
+import java.net.URLDecoder;
11
+import javax.servlet.http.HttpServletRequest;
12
+import javax.servlet.http.HttpServletResponse;
13
+
14
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningResult;
15
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
16
+import com.zzsmart.qomo.kn.cost.manage.plugin.CostEffectiveService;
17
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostCountService;
18
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningResultService;
19
+import com.zzsmart.qomo.kn.cost.manage.vo.MatnrVersionVO;
20
+import com.zzsmart.qomo.kn.cost.manage.vo.MiningResultVO;
21
+import org.jeecg.common.api.vo.Result;
22
+import org.jeecg.common.system.query.QueryGenerator;
23
+import org.jeecg.common.util.oConvertUtils;
24
+
25
+
26
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
27
+import com.baomidou.mybatisplus.core.metadata.IPage;
28
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
29
+import lombok.extern.slf4j.Slf4j;
30
+
31
+import org.jeecgframework.poi.excel.ExcelImportUtil;
32
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
33
+import org.jeecgframework.poi.excel.entity.ExportParams;
34
+import org.jeecgframework.poi.excel.entity.ImportParams;
35
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
36
+import org.jeecg.common.system.base.controller.JeecgController;
37
+import org.springframework.beans.factory.annotation.Autowired;
38
+import org.springframework.web.bind.annotation.*;
39
+import org.springframework.web.multipart.MultipartFile;
40
+import org.springframework.web.multipart.MultipartHttpServletRequest;
41
+import org.springframework.web.servlet.ModelAndView;
42
+import com.alibaba.fastjson.JSON;
43
+import io.swagger.annotations.Api;
44
+import io.swagger.annotations.ApiOperation;
45
+import org.jeecg.common.aspect.annotation.AutoLog;
46
+import org.apache.shiro.authz.annotation.RequiresPermissions;
47
+
48
+ /**
49
+ * @Description: app_scene_cost_mining_result
50
+ * @Author: jeecg-boot
51
+ * @Date:   2024-10-15
52
+ * @Version: V1.0
53
+ */
54
+@Api(tags="app_scene_cost_mining_result")
55
+@RestController
56
+@RequestMapping("//appSceneCostMiningResult")
57
+@Slf4j
58
+public class AppSceneCostMiningResultController extends JeecgController<AppSceneCostMiningResult, IAppSceneCostMiningResultService> {
59
+	@Autowired
60
+	private IAppSceneCostMiningResultService appSceneCostMiningResultService;
61
+
62
+	@Autowired
63
+	private CostEffectiveService costEffectiveService;
64
+
65
+	@Autowired
66
+	private IAppSceneCostCountService iAppSceneCostCountService;
67
+	
68
+	/**
69
+	 * 分页列表查询
70
+	 *
71
+	 * @param appSceneCostMiningResult
72
+	 * @param pageNo
73
+	 * @param pageSize
74
+	 * @param req
75
+	 * @return
76
+	 */
77
+	//@AutoLog(value = "app_scene_cost_mining_result-分页列表查询")
78
+	@ApiOperation(value="app_scene_cost_mining_result-分页列表查询", notes="app_scene_cost_mining_result-分页列表查询")
79
+	@GetMapping(value = "/list")
80
+	public Result<IPage<AppSceneCostMiningResult>> queryPageList(AppSceneCostMiningResult appSceneCostMiningResult,
81
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
82
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
83
+								   HttpServletRequest req) {
84
+		QueryWrapper<AppSceneCostMiningResult> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningResult, req.getParameterMap());
85
+		queryWrapper.orderByDesc("startdate");
86
+		Page<AppSceneCostMiningResult> page = new Page<AppSceneCostMiningResult>(pageNo, pageSize);
87
+		IPage<AppSceneCostMiningResult> pageList = appSceneCostMiningResultService.page(page, queryWrapper);
88
+		return Result.OK(pageList);
89
+	}
90
+	
91
+	/**
92
+	 *   添加
93
+	 *
94
+	 * @param appSceneCostMiningResult
95
+	 * @return
96
+	 */
97
+	@AutoLog(value = "app_scene_cost_mining_result-添加")
98
+	@ApiOperation(value="app_scene_cost_mining_result-添加", notes="app_scene_cost_mining_result-添加")
99
+	//@RequiresPermissions(":app_scene_cost_mining_result:add")
100
+	@PostMapping(value = "/add")
101
+	public Result<String> add(@RequestBody MiningResultVO miningResultVO) {
102
+		//appSceneCostMiningResultService.save(appSceneCostMiningResult);
103
+		costEffectiveService.FindNode(miningResultVO.getMatnr(),miningResultVO.getYmonth(),miningResultVO.getWerks(),miningResultVO.getVersion(),miningResultVO.getAufnr(),"",true);
104
+		return Result.OK("添加成功!");
105
+	}
106
+	
107
+	/**
108
+	 *  编辑
109
+	 *
110
+	 * @param appSceneCostMiningResult
111
+	 * @return
112
+	 */
113
+	@AutoLog(value = "app_scene_cost_mining_result-编辑")
114
+	@ApiOperation(value="app_scene_cost_mining_result-编辑", notes="app_scene_cost_mining_result-编辑")
115
+	@RequiresPermissions(":app_scene_cost_mining_result:edit")
116
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
117
+	public Result<String> edit(@RequestBody AppSceneCostMiningResult appSceneCostMiningResult) {
118
+		appSceneCostMiningResultService.updateById(appSceneCostMiningResult);
119
+		return Result.OK("编辑成功!");
120
+	}
121
+	
122
+	/**
123
+	 *   通过id删除
124
+	 *
125
+	 * @param id
126
+	 * @return
127
+	 */
128
+	@AutoLog(value = "app_scene_cost_mining_result-通过id删除")
129
+	@ApiOperation(value="app_scene_cost_mining_result-通过id删除", notes="app_scene_cost_mining_result-通过id删除")
130
+	@RequiresPermissions(":app_scene_cost_mining_result:delete")
131
+	@DeleteMapping(value = "/delete")
132
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
133
+		appSceneCostMiningResultService.removeById(id);
134
+		return Result.OK("删除成功!");
135
+	}
136
+	
137
+	/**
138
+	 *  批量删除
139
+	 *
140
+	 * @param ids
141
+	 * @return
142
+	 */
143
+	@AutoLog(value = "app_scene_cost_mining_result-批量删除")
144
+	@ApiOperation(value="app_scene_cost_mining_result-批量删除", notes="app_scene_cost_mining_result-批量删除")
145
+	@RequiresPermissions(":app_scene_cost_mining_result:deleteBatch")
146
+	@DeleteMapping(value = "/deleteBatch")
147
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
148
+		this.appSceneCostMiningResultService.removeByIds(Arrays.asList(ids.split(",")));
149
+		return Result.OK("批量删除成功!");
150
+	}
151
+	
152
+	/**
153
+	 * 通过id查询
154
+	 *
155
+	 * @param id
156
+	 * @return
157
+	 */
158
+	//@AutoLog(value = "app_scene_cost_mining_result-通过id查询")
159
+	@ApiOperation(value="app_scene_cost_mining_result-通过id查询", notes="app_scene_cost_mining_result-通过id查询")
160
+	@GetMapping(value = "/queryById")
161
+	public Result<AppSceneCostMiningResult> queryById(@RequestParam(name="id",required=true) String id) {
162
+		AppSceneCostMiningResult appSceneCostMiningResult = appSceneCostMiningResultService.getById(id);
163
+		if(appSceneCostMiningResult==null) {
164
+			return Result.error("未找到对应数据");
165
+		}
166
+		return Result.OK(appSceneCostMiningResult);
167
+	}
168
+
169
+    /**
170
+    * 导出excel
171
+    *
172
+    * @param request
173
+    * @param appSceneCostMiningResult
174
+    */
175
+    @RequiresPermissions(":app_scene_cost_mining_result:exportXls")
176
+    @RequestMapping(value = "/exportXls")
177
+    public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningResult appSceneCostMiningResult) {
178
+        return super.exportXls(request, appSceneCostMiningResult, AppSceneCostMiningResult.class, "app_scene_cost_mining_result");
179
+    }
180
+
181
+    /**
182
+      * 通过excel导入数据
183
+    *
184
+    * @param request
185
+    * @param response
186
+    * @return
187
+    */
188
+    @RequiresPermissions(":app_scene_cost_mining_result:importExcel")
189
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
190
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
191
+        return super.importExcel(request, response, AppSceneCostMiningResult.class);
192
+    }
193
+
194
+	/* 根据物料号查询标准成本版本及订单号
195
+	 *
196
+			 * @param appSceneCostMiningResult
197
+	 * @param req
198
+	 * @return
199
+			 */
200
+	 //@AutoLog(value = "app_scene_cost_mining_result-分页列表查询")
201
+	 @ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
202
+	 @GetMapping(value = "/queryVersion")
203
+	 public Result<MatnrVersionVO> queryPageList(@RequestParam(name="werks", defaultValue="") String werks,
204
+												 @RequestParam(name="matnr", defaultValue="") String matnr,
205
+												 @RequestParam(name="ymonth", defaultValue="") String ymonth,
206
+												 HttpServletRequest req) {
207
+		 MatnrVersionVO vo = iAppSceneCostCountService.getVersionsByMatnr(werks,matnr,ymonth);
208
+		 return Result.OK(vo);
209
+	 }
210
+
211
+
212
+
213
+}

+ 180
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapAfruController.java Просмотреть файл

@@ -0,0 +1,180 @@
1
+package com.zzsmart.qomo.kn.cost.manage.controller;
2
+
3
+import java.util.Arrays;
4
+import java.util.List;
5
+import java.util.Map;
6
+import java.util.stream.Collectors;
7
+import java.io.IOException;
8
+import java.io.UnsupportedEncodingException;
9
+import java.net.URLDecoder;
10
+import javax.servlet.http.HttpServletRequest;
11
+import javax.servlet.http.HttpServletResponse;
12
+
13
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapAfru;
14
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapAfruService;
15
+import org.jeecg.common.api.vo.Result;
16
+import org.jeecg.common.system.query.QueryGenerator;
17
+import org.jeecg.common.util.oConvertUtils;
18
+
19
+
20
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
21
+import com.baomidou.mybatisplus.core.metadata.IPage;
22
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
23
+import lombok.extern.slf4j.Slf4j;
24
+
25
+import org.jeecgframework.poi.excel.ExcelImportUtil;
26
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
27
+import org.jeecgframework.poi.excel.entity.ExportParams;
28
+import org.jeecgframework.poi.excel.entity.ImportParams;
29
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
30
+import org.jeecg.common.system.base.controller.JeecgController;
31
+import org.springframework.beans.factory.annotation.Autowired;
32
+import org.springframework.web.bind.annotation.*;
33
+import org.springframework.web.multipart.MultipartFile;
34
+import org.springframework.web.multipart.MultipartHttpServletRequest;
35
+import org.springframework.web.servlet.ModelAndView;
36
+import com.alibaba.fastjson.JSON;
37
+import io.swagger.annotations.Api;
38
+import io.swagger.annotations.ApiOperation;
39
+import org.jeecg.common.aspect.annotation.AutoLog;
40
+import org.apache.shiro.authz.annotation.RequiresPermissions;
41
+
42
+ /**
43
+ * @Description: app_scene_cost_sap_afru
44
+ * @Author: jeecg-boot
45
+ * @Date:   2024-10-15
46
+ * @Version: V1.0
47
+ */
48
+@Api(tags="app_scene_cost_sap_afru")
49
+@RestController
50
+@RequestMapping("/cost/appSceneCostSapAfru")
51
+@Slf4j
52
+public class AppSceneCostSapAfruController extends JeecgController<AppSceneCostSapAfru, IAppSceneCostSapAfruService> {
53
+	@Autowired
54
+	private IAppSceneCostSapAfruService appSceneCostSapAfruService;
55
+	
56
+	/**
57
+	 * 分页列表查询
58
+	 *
59
+	 * @param appSceneCostSapAfru
60
+	 * @param pageNo
61
+	 * @param pageSize
62
+	 * @param req
63
+	 * @return
64
+	 */
65
+	//@AutoLog(value = "app_scene_cost_sap_afru-分页列表查询")
66
+	@ApiOperation(value="app_scene_cost_sap_afru-分页列表查询", notes="app_scene_cost_sap_afru-分页列表查询")
67
+	@GetMapping(value = "/list")
68
+	public Result<IPage<AppSceneCostSapAfru>> queryPageList(AppSceneCostSapAfru appSceneCostSapAfru,
69
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
70
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
71
+								   HttpServletRequest req) {
72
+		QueryWrapper<AppSceneCostSapAfru> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapAfru, req.getParameterMap());
73
+		Page<AppSceneCostSapAfru> page = new Page<AppSceneCostSapAfru>(pageNo, pageSize);
74
+		IPage<AppSceneCostSapAfru> pageList = appSceneCostSapAfruService.page(page, queryWrapper);
75
+		return Result.OK(pageList);
76
+	}
77
+	
78
+	/**
79
+	 *   添加
80
+	 *
81
+	 * @param appSceneCostSapAfru
82
+	 * @return
83
+	 */
84
+	@AutoLog(value = "app_scene_cost_sap_afru-添加")
85
+	@ApiOperation(value="app_scene_cost_sap_afru-添加", notes="app_scene_cost_sap_afru-添加")
86
+	@RequiresPermissions("cost:app_scene_cost_sap_afru:add")
87
+	@PostMapping(value = "/add")
88
+	public Result<String> add(@RequestBody AppSceneCostSapAfru appSceneCostSapAfru) {
89
+		appSceneCostSapAfruService.save(appSceneCostSapAfru);
90
+		return Result.OK("添加成功!");
91
+	}
92
+	
93
+	/**
94
+	 *  编辑
95
+	 *
96
+	 * @param appSceneCostSapAfru
97
+	 * @return
98
+	 */
99
+	@AutoLog(value = "app_scene_cost_sap_afru-编辑")
100
+	@ApiOperation(value="app_scene_cost_sap_afru-编辑", notes="app_scene_cost_sap_afru-编辑")
101
+	@RequiresPermissions("cost:app_scene_cost_sap_afru:edit")
102
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
103
+	public Result<String> edit(@RequestBody AppSceneCostSapAfru appSceneCostSapAfru) {
104
+		appSceneCostSapAfruService.updateById(appSceneCostSapAfru);
105
+		return Result.OK("编辑成功!");
106
+	}
107
+	
108
+	/**
109
+	 *   通过id删除
110
+	 *
111
+	 * @param id
112
+	 * @return
113
+	 */
114
+	@AutoLog(value = "app_scene_cost_sap_afru-通过id删除")
115
+	@ApiOperation(value="app_scene_cost_sap_afru-通过id删除", notes="app_scene_cost_sap_afru-通过id删除")
116
+	@RequiresPermissions("cost:app_scene_cost_sap_afru:delete")
117
+	@DeleteMapping(value = "/delete")
118
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
119
+		appSceneCostSapAfruService.removeById(id);
120
+		return Result.OK("删除成功!");
121
+	}
122
+	
123
+	/**
124
+	 *  批量删除
125
+	 *
126
+	 * @param ids
127
+	 * @return
128
+	 */
129
+	@AutoLog(value = "app_scene_cost_sap_afru-批量删除")
130
+	@ApiOperation(value="app_scene_cost_sap_afru-批量删除", notes="app_scene_cost_sap_afru-批量删除")
131
+	@RequiresPermissions("cost:app_scene_cost_sap_afru:deleteBatch")
132
+	@DeleteMapping(value = "/deleteBatch")
133
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
134
+		this.appSceneCostSapAfruService.removeByIds(Arrays.asList(ids.split(",")));
135
+		return Result.OK("批量删除成功!");
136
+	}
137
+	
138
+	/**
139
+	 * 通过id查询
140
+	 *
141
+	 * @param id
142
+	 * @return
143
+	 */
144
+	//@AutoLog(value = "app_scene_cost_sap_afru-通过id查询")
145
+	@ApiOperation(value="app_scene_cost_sap_afru-通过id查询", notes="app_scene_cost_sap_afru-通过id查询")
146
+	@GetMapping(value = "/queryById")
147
+	public Result<AppSceneCostSapAfru> queryById(@RequestParam(name="id",required=true) String id) {
148
+		AppSceneCostSapAfru appSceneCostSapAfru = appSceneCostSapAfruService.getById(id);
149
+		if(appSceneCostSapAfru==null) {
150
+			return Result.error("未找到对应数据");
151
+		}
152
+		return Result.OK(appSceneCostSapAfru);
153
+	}
154
+
155
+    /**
156
+    * 导出excel
157
+    *
158
+    * @param request
159
+    * @param appSceneCostSapAfru
160
+    */
161
+    @RequiresPermissions("cost:app_scene_cost_sap_afru:exportXls")
162
+    @RequestMapping(value = "/exportXls")
163
+    public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapAfru appSceneCostSapAfru) {
164
+        return super.exportXls(request, appSceneCostSapAfru, AppSceneCostSapAfru.class, "app_scene_cost_sap_afru");
165
+    }
166
+
167
+    /**
168
+      * 通过excel导入数据
169
+    *
170
+    * @param request
171
+    * @param response
172
+    * @return
173
+    */
174
+    @RequiresPermissions("cost:app_scene_cost_sap_afru:importExcel")
175
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
176
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
177
+        return super.importExcel(request, response, AppSceneCostSapAfru.class);
178
+    }
179
+
180
+}

+ 178
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapEkpoController.java Просмотреть файл

@@ -0,0 +1,178 @@
1
+package com.zzsmart.qomo.kn.cost.manage.controller;
2
+
3
+import java.util.Arrays;
4
+import java.util.List;
5
+import java.util.Map;
6
+import java.util.stream.Collectors;
7
+import java.io.IOException;
8
+import java.io.UnsupportedEncodingException;
9
+import java.net.URLDecoder;
10
+import javax.servlet.http.HttpServletRequest;
11
+import javax.servlet.http.HttpServletResponse;
12
+import org.jeecg.common.api.vo.Result;
13
+import org.jeecg.common.system.query.QueryGenerator;
14
+import org.jeecg.common.util.oConvertUtils;
15
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapEkpo;
16
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapEkpoService;
17
+
18
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
19
+import com.baomidou.mybatisplus.core.metadata.IPage;
20
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
21
+import lombok.extern.slf4j.Slf4j;
22
+
23
+import org.jeecgframework.poi.excel.ExcelImportUtil;
24
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
25
+import org.jeecgframework.poi.excel.entity.ExportParams;
26
+import org.jeecgframework.poi.excel.entity.ImportParams;
27
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
28
+import org.jeecg.common.system.base.controller.JeecgController;
29
+import org.springframework.beans.factory.annotation.Autowired;
30
+import org.springframework.web.bind.annotation.*;
31
+import org.springframework.web.multipart.MultipartFile;
32
+import org.springframework.web.multipart.MultipartHttpServletRequest;
33
+import org.springframework.web.servlet.ModelAndView;
34
+import com.alibaba.fastjson.JSON;
35
+import io.swagger.annotations.Api;
36
+import io.swagger.annotations.ApiOperation;
37
+import org.jeecg.common.aspect.annotation.AutoLog;
38
+import org.apache.shiro.authz.annotation.RequiresPermissions;
39
+
40
+ /**
41
+ * @Description: app_scene_cost_sap_ekpo
42
+ * @Author: jeecg-boot
43
+ * @Date:   2024-09-22
44
+ * @Version: V1.0
45
+ */
46
+@Api(tags="app_scene_cost_sap_ekpo")
47
+@RestController
48
+@RequestMapping("/com.zzsmart.qomo.kn.cost.manage/appSceneCostSapEkpo")
49
+@Slf4j
50
+public class AppSceneCostSapEkpoController extends JeecgController<AppSceneCostSapEkpo, IAppSceneCostSapEkpoService> {
51
+	@Autowired
52
+	private IAppSceneCostSapEkpoService appSceneCostSapEkpoService;
53
+	
54
+	/**
55
+	 * 分页列表查询
56
+	 *
57
+	 * @param appSceneCostSapEkpo
58
+	 * @param pageNo
59
+	 * @param pageSize
60
+	 * @param req
61
+	 * @return
62
+	 */
63
+	//@AutoLog(value = "app_scene_cost_sap_ekpo-分页列表查询")
64
+	@ApiOperation(value="app_scene_cost_sap_ekpo-分页列表查询", notes="app_scene_cost_sap_ekpo-分页列表查询")
65
+	@GetMapping(value = "/list")
66
+	public Result<IPage<AppSceneCostSapEkpo>> queryPageList(AppSceneCostSapEkpo appSceneCostSapEkpo,
67
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
68
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
69
+								   HttpServletRequest req) {
70
+		QueryWrapper<AppSceneCostSapEkpo> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapEkpo, req.getParameterMap());
71
+		Page<AppSceneCostSapEkpo> page = new Page<AppSceneCostSapEkpo>(pageNo, pageSize);
72
+		IPage<AppSceneCostSapEkpo> pageList = appSceneCostSapEkpoService.page(page, queryWrapper);
73
+		return Result.OK(pageList);
74
+	}
75
+	
76
+	/**
77
+	 *   添加
78
+	 *
79
+	 * @param appSceneCostSapEkpo
80
+	 * @return
81
+	 */
82
+	@AutoLog(value = "app_scene_cost_sap_ekpo-添加")
83
+	@ApiOperation(value="app_scene_cost_sap_ekpo-添加", notes="app_scene_cost_sap_ekpo-添加")
84
+	@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:add")
85
+	@PostMapping(value = "/add")
86
+	public Result<String> add(@RequestBody AppSceneCostSapEkpo appSceneCostSapEkpo) {
87
+		appSceneCostSapEkpoService.save(appSceneCostSapEkpo);
88
+		return Result.OK("添加成功!");
89
+	}
90
+	
91
+	/**
92
+	 *  编辑
93
+	 *
94
+	 * @param appSceneCostSapEkpo
95
+	 * @return
96
+	 */
97
+	@AutoLog(value = "app_scene_cost_sap_ekpo-编辑")
98
+	@ApiOperation(value="app_scene_cost_sap_ekpo-编辑", notes="app_scene_cost_sap_ekpo-编辑")
99
+	@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:edit")
100
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
101
+	public Result<String> edit(@RequestBody AppSceneCostSapEkpo appSceneCostSapEkpo) {
102
+		appSceneCostSapEkpoService.updateById(appSceneCostSapEkpo);
103
+		return Result.OK("编辑成功!");
104
+	}
105
+	
106
+	/**
107
+	 *   通过id删除
108
+	 *
109
+	 * @param id
110
+	 * @return
111
+	 */
112
+	@AutoLog(value = "app_scene_cost_sap_ekpo-通过id删除")
113
+	@ApiOperation(value="app_scene_cost_sap_ekpo-通过id删除", notes="app_scene_cost_sap_ekpo-通过id删除")
114
+	@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:delete")
115
+	@DeleteMapping(value = "/delete")
116
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
117
+		appSceneCostSapEkpoService.removeById(id);
118
+		return Result.OK("删除成功!");
119
+	}
120
+	
121
+	/**
122
+	 *  批量删除
123
+	 *
124
+	 * @param ids
125
+	 * @return
126
+	 */
127
+	@AutoLog(value = "app_scene_cost_sap_ekpo-批量删除")
128
+	@ApiOperation(value="app_scene_cost_sap_ekpo-批量删除", notes="app_scene_cost_sap_ekpo-批量删除")
129
+	@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:deleteBatch")
130
+	@DeleteMapping(value = "/deleteBatch")
131
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
132
+		this.appSceneCostSapEkpoService.removeByIds(Arrays.asList(ids.split(",")));
133
+		return Result.OK("批量删除成功!");
134
+	}
135
+	
136
+	/**
137
+	 * 通过id查询
138
+	 *
139
+	 * @param id
140
+	 * @return
141
+	 */
142
+	//@AutoLog(value = "app_scene_cost_sap_ekpo-通过id查询")
143
+	@ApiOperation(value="app_scene_cost_sap_ekpo-通过id查询", notes="app_scene_cost_sap_ekpo-通过id查询")
144
+	@GetMapping(value = "/queryById")
145
+	public Result<AppSceneCostSapEkpo> queryById(@RequestParam(name="id",required=true) String id) {
146
+		AppSceneCostSapEkpo appSceneCostSapEkpo = appSceneCostSapEkpoService.getById(id);
147
+		if(appSceneCostSapEkpo==null) {
148
+			return Result.error("未找到对应数据");
149
+		}
150
+		return Result.OK(appSceneCostSapEkpo);
151
+	}
152
+
153
+    /**
154
+    * 导出excel
155
+    *
156
+    * @param request
157
+    * @param appSceneCostSapEkpo
158
+    */
159
+    @RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:exportXls")
160
+    @RequestMapping(value = "/exportXls")
161
+    public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapEkpo appSceneCostSapEkpo) {
162
+        return super.exportXls(request, appSceneCostSapEkpo, AppSceneCostSapEkpo.class, "app_scene_cost_sap_ekpo");
163
+    }
164
+
165
+    /**
166
+      * 通过excel导入数据
167
+    *
168
+    * @param request
169
+    * @param response
170
+    * @return
171
+    */
172
+    @RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:importExcel")
173
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
174
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
175
+        return super.importExcel(request, response, AppSceneCostSapEkpo.class);
176
+    }
177
+
178
+}

+ 180
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapHourRateController.java Просмотреть файл

@@ -0,0 +1,180 @@
1
+package com.zzsmart.qomo.kn.cost.manage.controller;
2
+
3
+import java.util.Arrays;
4
+import java.util.List;
5
+import java.util.Map;
6
+import java.util.stream.Collectors;
7
+import java.io.IOException;
8
+import java.io.UnsupportedEncodingException;
9
+import java.net.URLDecoder;
10
+import javax.servlet.http.HttpServletRequest;
11
+import javax.servlet.http.HttpServletResponse;
12
+
13
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapHourRate;
14
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapHourRateService;
15
+import org.jeecg.common.api.vo.Result;
16
+import org.jeecg.common.system.query.QueryGenerator;
17
+import org.jeecg.common.util.oConvertUtils;
18
+
19
+
20
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
21
+import com.baomidou.mybatisplus.core.metadata.IPage;
22
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
23
+import lombok.extern.slf4j.Slf4j;
24
+
25
+import org.jeecgframework.poi.excel.ExcelImportUtil;
26
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
27
+import org.jeecgframework.poi.excel.entity.ExportParams;
28
+import org.jeecgframework.poi.excel.entity.ImportParams;
29
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
30
+import org.jeecg.common.system.base.controller.JeecgController;
31
+import org.springframework.beans.factory.annotation.Autowired;
32
+import org.springframework.web.bind.annotation.*;
33
+import org.springframework.web.multipart.MultipartFile;
34
+import org.springframework.web.multipart.MultipartHttpServletRequest;
35
+import org.springframework.web.servlet.ModelAndView;
36
+import com.alibaba.fastjson.JSON;
37
+import io.swagger.annotations.Api;
38
+import io.swagger.annotations.ApiOperation;
39
+import org.jeecg.common.aspect.annotation.AutoLog;
40
+import org.apache.shiro.authz.annotation.RequiresPermissions;
41
+
42
+ /**
43
+ * @Description: app_scene_cost_sap_hour_rate
44
+ * @Author: jeecg-boot
45
+ * @Date:   2024-10-15
46
+ * @Version: V1.0
47
+ */
48
+@Api(tags="app_scene_cost_sap_hour_rate")
49
+@RestController
50
+@RequestMapping("/cost/appSceneCostSapHourRate")
51
+@Slf4j
52
+public class AppSceneCostSapHourRateController extends JeecgController<AppSceneCostSapHourRate, IAppSceneCostSapHourRateService> {
53
+	@Autowired
54
+	private IAppSceneCostSapHourRateService appSceneCostSapHourRateService;
55
+	
56
+	/**
57
+	 * 分页列表查询
58
+	 *
59
+	 * @param appSceneCostSapHourRate
60
+	 * @param pageNo
61
+	 * @param pageSize
62
+	 * @param req
63
+	 * @return
64
+	 */
65
+	//@AutoLog(value = "app_scene_cost_sap_hour_rate-分页列表查询")
66
+	@ApiOperation(value="app_scene_cost_sap_hour_rate-分页列表查询", notes="app_scene_cost_sap_hour_rate-分页列表查询")
67
+	@GetMapping(value = "/list")
68
+	public Result<IPage<AppSceneCostSapHourRate>> queryPageList(AppSceneCostSapHourRate appSceneCostSapHourRate,
69
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
70
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
71
+								   HttpServletRequest req) {
72
+		QueryWrapper<AppSceneCostSapHourRate> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapHourRate, req.getParameterMap());
73
+		Page<AppSceneCostSapHourRate> page = new Page<AppSceneCostSapHourRate>(pageNo, pageSize);
74
+		IPage<AppSceneCostSapHourRate> pageList = appSceneCostSapHourRateService.page(page, queryWrapper);
75
+		return Result.OK(pageList);
76
+	}
77
+	
78
+	/**
79
+	 *   添加
80
+	 *
81
+	 * @param appSceneCostSapHourRate
82
+	 * @return
83
+	 */
84
+	@AutoLog(value = "app_scene_cost_sap_hour_rate-添加")
85
+	@ApiOperation(value="app_scene_cost_sap_hour_rate-添加", notes="app_scene_cost_sap_hour_rate-添加")
86
+	@RequiresPermissions("cost:app_scene_cost_sap_hour_rate:add")
87
+	@PostMapping(value = "/add")
88
+	public Result<String> add(@RequestBody AppSceneCostSapHourRate appSceneCostSapHourRate) {
89
+		appSceneCostSapHourRateService.save(appSceneCostSapHourRate);
90
+		return Result.OK("添加成功!");
91
+	}
92
+	
93
+	/**
94
+	 *  编辑
95
+	 *
96
+	 * @param appSceneCostSapHourRate
97
+	 * @return
98
+	 */
99
+	@AutoLog(value = "app_scene_cost_sap_hour_rate-编辑")
100
+	@ApiOperation(value="app_scene_cost_sap_hour_rate-编辑", notes="app_scene_cost_sap_hour_rate-编辑")
101
+	@RequiresPermissions("cost:app_scene_cost_sap_hour_rate:edit")
102
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
103
+	public Result<String> edit(@RequestBody AppSceneCostSapHourRate appSceneCostSapHourRate) {
104
+		appSceneCostSapHourRateService.updateById(appSceneCostSapHourRate);
105
+		return Result.OK("编辑成功!");
106
+	}
107
+	
108
+	/**
109
+	 *   通过id删除
110
+	 *
111
+	 * @param id
112
+	 * @return
113
+	 */
114
+	@AutoLog(value = "app_scene_cost_sap_hour_rate-通过id删除")
115
+	@ApiOperation(value="app_scene_cost_sap_hour_rate-通过id删除", notes="app_scene_cost_sap_hour_rate-通过id删除")
116
+	@RequiresPermissions("cost:app_scene_cost_sap_hour_rate:delete")
117
+	@DeleteMapping(value = "/delete")
118
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
119
+		appSceneCostSapHourRateService.removeById(id);
120
+		return Result.OK("删除成功!");
121
+	}
122
+	
123
+	/**
124
+	 *  批量删除
125
+	 *
126
+	 * @param ids
127
+	 * @return
128
+	 */
129
+	@AutoLog(value = "app_scene_cost_sap_hour_rate-批量删除")
130
+	@ApiOperation(value="app_scene_cost_sap_hour_rate-批量删除", notes="app_scene_cost_sap_hour_rate-批量删除")
131
+	@RequiresPermissions("cost:app_scene_cost_sap_hour_rate:deleteBatch")
132
+	@DeleteMapping(value = "/deleteBatch")
133
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
134
+		this.appSceneCostSapHourRateService.removeByIds(Arrays.asList(ids.split(",")));
135
+		return Result.OK("批量删除成功!");
136
+	}
137
+	
138
+	/**
139
+	 * 通过id查询
140
+	 *
141
+	 * @param id
142
+	 * @return
143
+	 */
144
+	//@AutoLog(value = "app_scene_cost_sap_hour_rate-通过id查询")
145
+	@ApiOperation(value="app_scene_cost_sap_hour_rate-通过id查询", notes="app_scene_cost_sap_hour_rate-通过id查询")
146
+	@GetMapping(value = "/queryById")
147
+	public Result<AppSceneCostSapHourRate> queryById(@RequestParam(name="id",required=true) String id) {
148
+		AppSceneCostSapHourRate appSceneCostSapHourRate = appSceneCostSapHourRateService.getById(id);
149
+		if(appSceneCostSapHourRate==null) {
150
+			return Result.error("未找到对应数据");
151
+		}
152
+		return Result.OK(appSceneCostSapHourRate);
153
+	}
154
+
155
+    /**
156
+    * 导出excel
157
+    *
158
+    * @param request
159
+    * @param appSceneCostSapHourRate
160
+    */
161
+    @RequiresPermissions("cost:app_scene_cost_sap_hour_rate:exportXls")
162
+    @RequestMapping(value = "/exportXls")
163
+    public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapHourRate appSceneCostSapHourRate) {
164
+        return super.exportXls(request, appSceneCostSapHourRate, AppSceneCostSapHourRate.class, "app_scene_cost_sap_hour_rate");
165
+    }
166
+
167
+    /**
168
+      * 通过excel导入数据
169
+    *
170
+    * @param request
171
+    * @param response
172
+    * @return
173
+    */
174
+    @RequiresPermissions("cost:app_scene_cost_sap_hour_rate:importExcel")
175
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
176
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
177
+        return super.importExcel(request, response, AppSceneCostSapHourRate.class);
178
+    }
179
+
180
+}

+ 220
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapZcorcController.java Просмотреть файл

@@ -0,0 +1,220 @@
1
+package com.zzsmart.qomo.kn.cost.manage.controller;
2
+
3
+import java.util.Arrays;
4
+import java.util.List;
5
+import java.util.Map;
6
+import java.util.stream.Collectors;
7
+import java.io.IOException;
8
+import java.io.UnsupportedEncodingException;
9
+import java.net.URLDecoder;
10
+import javax.servlet.http.HttpServletRequest;
11
+import javax.servlet.http.HttpServletResponse;
12
+
13
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
14
+import com.zzsmart.qomo.kn.cost.manage.plugin.CostEffectiveService;
15
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostActualService;
16
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapZcorcService;
17
+import com.zzsmart.qomo.kn.cost.manage.vo.CostEffectiveVO;
18
+import org.checkerframework.checker.units.qual.A;
19
+import org.jeecg.common.api.vo.Result;
20
+import org.jeecg.common.system.query.QueryGenerator;
21
+import org.jeecg.common.util.oConvertUtils;
22
+
23
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
24
+import com.baomidou.mybatisplus.core.metadata.IPage;
25
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
26
+import lombok.extern.slf4j.Slf4j;
27
+
28
+import org.jeecgframework.poi.excel.ExcelImportUtil;
29
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
30
+import org.jeecgframework.poi.excel.entity.ExportParams;
31
+import org.jeecgframework.poi.excel.entity.ImportParams;
32
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
33
+import org.jeecg.common.system.base.controller.JeecgController;
34
+import org.springframework.beans.factory.annotation.Autowired;
35
+import org.springframework.web.bind.annotation.*;
36
+import org.springframework.web.multipart.MultipartFile;
37
+import org.springframework.web.multipart.MultipartHttpServletRequest;
38
+import org.springframework.web.servlet.ModelAndView;
39
+import com.alibaba.fastjson.JSON;
40
+import io.swagger.annotations.Api;
41
+import io.swagger.annotations.ApiOperation;
42
+import org.jeecg.common.aspect.annotation.AutoLog;
43
+import org.apache.shiro.authz.annotation.RequiresPermissions;
44
+
45
+ /**
46
+ * @Description: app_scene_cost_sap_zcorc
47
+ * @Author: jeecg-boot
48
+ * @Date:   2024-10-15
49
+ * @Version: V1.0
50
+ */
51
+@Api(tags="app_scene_cost_sap_zcorc")
52
+@RestController
53
+@RequestMapping("/cost/appSceneCostSapZcorc")
54
+@Slf4j
55
+public class AppSceneCostSapZcorcController extends JeecgController<AppSceneCostSapZcorc, IAppSceneCostSapZcorcService> {
56
+	@Autowired
57
+	private IAppSceneCostSapZcorcService appSceneCostSapZcorcService;
58
+
59
+	@Autowired
60
+	private CostEffectiveService costEffectiveService;
61
+
62
+	@Autowired
63
+	private IAppSceneCostActualService iAppSceneCostActualService;
64
+	
65
+	/**
66
+	 * 分页列表查询
67
+	 *
68
+	 * @param appSceneCostSapZcorc
69
+	 * @param pageNo
70
+	 * @param pageSize
71
+	 * @param req
72
+	 * @return
73
+	 */
74
+	//@AutoLog(value = "app_scene_cost_sap_zcorc-分页列表查询")
75
+	@ApiOperation(value="app_scene_cost_sap_zcorc-分页列表查询", notes="app_scene_cost_sap_zcorc-分页列表查询")
76
+	@GetMapping(value = "/list")
77
+	public Result<IPage<AppSceneCostSapZcorc>> queryPageList(AppSceneCostSapZcorc appSceneCostSapZcorc,
78
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
79
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
80
+								   HttpServletRequest req) {
81
+		QueryWrapper<AppSceneCostSapZcorc> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapZcorc, req.getParameterMap());
82
+		Page<AppSceneCostSapZcorc> page = new Page<AppSceneCostSapZcorc>(pageNo, pageSize);
83
+		IPage<AppSceneCostSapZcorc> pageList = appSceneCostSapZcorcService.page(page, queryWrapper);
84
+		return Result.OK(pageList);
85
+	}
86
+	
87
+	/**
88
+	 *   添加
89
+	 *
90
+	 * @param appSceneCostSapZcorc
91
+	 * @return
92
+	 */
93
+	@AutoLog(value = "app_scene_cost_sap_zcorc-添加")
94
+	@ApiOperation(value="app_scene_cost_sap_zcorc-添加", notes="app_scene_cost_sap_zcorc-添加")
95
+	//@RequiresPermissions("cost:app_scene_cost_sap_zcorc:add")
96
+	@PostMapping(value = "/add")
97
+	public Result<String> add(@RequestBody CostEffectiveVO costEffectiveVO) {
98
+		//appSceneCostSapZcorcService.save(appSceneCostSapZcorc);
99
+		costEffectiveService.loadsapservice(costEffectiveVO.getWerks(),costEffectiveVO.getMatnr(),"",costEffectiveVO.getYmonth());
100
+		return Result.OK("添加成功!");
101
+	}
102
+
103
+	 /**
104
+	  *   添加
105
+	  *
106
+	  * @param appSceneCostSapZcorc
107
+	  * @return
108
+	  */
109
+	 @AutoLog(value = "app_scene_cost_sap_zcorc-添加")
110
+	 @ApiOperation(value="app_scene_cost_sap_zcorc-添加", notes="app_scene_cost_sap_zcorc-添加")
111
+	 //@RequiresPermissions("cost:app_scene_cost_sap_zcorc:add")
112
+	 @GetMapping(value = "/fix")
113
+	 public Result<String> fix(@RequestParam(name="version") String version) {
114
+		 //appSceneCostSapZcorcService.save(appSceneCostSapZcorc);
115
+		 costEffectiveService.fixversion(version);
116
+		 return Result.OK("添加成功!");
117
+	 }
118
+	
119
+	/**
120
+	 *  编辑
121
+	 *
122
+	 * @param appSceneCostSapZcorc
123
+	 * @return
124
+	 */
125
+	@AutoLog(value = "app_scene_cost_sap_zcorc-编辑")
126
+	@ApiOperation(value="app_scene_cost_sap_zcorc-编辑", notes="app_scene_cost_sap_zcorc-编辑")
127
+	@RequiresPermissions("cost:app_scene_cost_sap_zcorc:edit")
128
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
129
+	public Result<String> edit(@RequestBody AppSceneCostSapZcorc appSceneCostSapZcorc) {
130
+		appSceneCostSapZcorcService.updateById(appSceneCostSapZcorc);
131
+		return Result.OK("编辑成功!");
132
+	}
133
+	
134
+	/**
135
+	 *   通过id删除
136
+	 *
137
+	 * @param id
138
+	 * @return
139
+	 */
140
+	@AutoLog(value = "app_scene_cost_sap_zcorc-通过id删除")
141
+	@ApiOperation(value="app_scene_cost_sap_zcorc-通过id删除", notes="app_scene_cost_sap_zcorc-通过id删除")
142
+	@RequiresPermissions("cost:app_scene_cost_sap_zcorc:delete")
143
+	@DeleteMapping(value = "/delete")
144
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
145
+		appSceneCostSapZcorcService.removeById(id);
146
+		return Result.OK("删除成功!");
147
+	}
148
+	
149
+	/**
150
+	 *  批量删除
151
+	 *
152
+	 * @param ids
153
+	 * @return
154
+	 */
155
+	@AutoLog(value = "app_scene_cost_sap_zcorc-批量删除")
156
+	@ApiOperation(value="app_scene_cost_sap_zcorc-批量删除", notes="app_scene_cost_sap_zcorc-批量删除")
157
+	@RequiresPermissions("cost:app_scene_cost_sap_zcorc:deleteBatch")
158
+	@DeleteMapping(value = "/deleteBatch")
159
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
160
+		this.appSceneCostSapZcorcService.removeByIds(Arrays.asList(ids.split(",")));
161
+		return Result.OK("批量删除成功!");
162
+	}
163
+	
164
+	/**
165
+	 * 通过id查询
166
+	 *
167
+	 * @param id
168
+	 * @return
169
+	 */
170
+	//@AutoLog(value = "app_scene_cost_sap_zcorc-通过id查询")
171
+	@ApiOperation(value="app_scene_cost_sap_zcorc-通过id查询", notes="app_scene_cost_sap_zcorc-通过id查询")
172
+	@GetMapping(value = "/queryById")
173
+	public Result<AppSceneCostSapZcorc> queryById(@RequestParam(name="id",required=true) String id) {
174
+		AppSceneCostSapZcorc appSceneCostSapZcorc = appSceneCostSapZcorcService.getById(id);
175
+		if(appSceneCostSapZcorc==null) {
176
+			return Result.error("未找到对应数据");
177
+		}
178
+		return Result.OK(appSceneCostSapZcorc);
179
+	}
180
+
181
+    /**
182
+    * 导出excel
183
+    *
184
+    * @param request
185
+    * @param appSceneCostSapZcorc
186
+    */
187
+    //@RequiresPermissions("cost:app_scene_cost_sap_zcorc:exportXls")
188
+    @RequestMapping(value = "/exportXls")
189
+    public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapZcorc appSceneCostSapZcorc) {
190
+		String exportFields="layer,rlayer,matnr,werks,aufnr,ebeln,ebelp,ppsmng,idnrk,kmonth,menge,unmng,kst001,kst003,kst005,kstsum";
191
+        return super.exportXls(request, appSceneCostSapZcorc, AppSceneCostSapZcorc.class, "实际成本",exportFields);
192
+    }
193
+
194
+	 /**
195
+	  * 导出excel
196
+	  *
197
+	  * @param request
198
+	  * @param appSceneCostSapZcorc
199
+	  */
200
+	 //@RequiresPermissions("cost:app_scene_cost_sap_zcorc:exportXls")
201
+	 @RequestMapping(value = "/exportmatnrXls")
202
+	 public ModelAndView exportmatnrXls(HttpServletRequest request, AppSceneCostSapZcorc appSceneCostSapZcorc) {
203
+		 String exportFields="layer,rlayer,matnr,werks,aufnr,ebeln,ebelp,ppsmng,idnrk,kmonth,menge,unmng,kstsum,rkst000,aufnrmng,aufnrnum,pnum,avgnum,avgprice,totalprice,";
204
+		 return super.exportXls(request, appSceneCostSapZcorc, AppSceneCostSapZcorc.class, "实际成本",exportFields);
205
+	 }
206
+
207
+    /**
208
+      * 通过excel导入数据
209
+    *
210
+    * @param request
211
+    * @param response
212
+    * @return
213
+    */
214
+    @RequiresPermissions("cost:app_scene_cost_sap_zcorc:importExcel")
215
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
216
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
217
+        return super.importExcel(request, response, AppSceneCostSapZcorc.class);
218
+    }
219
+
220
+}

+ 179
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapZtmmx004Controller.java Просмотреть файл

@@ -0,0 +1,179 @@
1
+package com.zzsmart.qomo.kn.cost.manage.controller;
2
+
3
+import java.util.Arrays;
4
+import java.util.List;
5
+import java.util.Map;
6
+import java.util.stream.Collectors;
7
+import java.io.IOException;
8
+import java.io.UnsupportedEncodingException;
9
+import java.net.URLDecoder;
10
+import javax.servlet.http.HttpServletRequest;
11
+import javax.servlet.http.HttpServletResponse;
12
+
13
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZtmmx004;
14
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapZtmmx004Service;
15
+import org.jeecg.common.api.vo.Result;
16
+import org.jeecg.common.system.query.QueryGenerator;
17
+import org.jeecg.common.util.oConvertUtils;
18
+
19
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
20
+import com.baomidou.mybatisplus.core.metadata.IPage;
21
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
22
+import lombok.extern.slf4j.Slf4j;
23
+
24
+import org.jeecgframework.poi.excel.ExcelImportUtil;
25
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
26
+import org.jeecgframework.poi.excel.entity.ExportParams;
27
+import org.jeecgframework.poi.excel.entity.ImportParams;
28
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
29
+import org.jeecg.common.system.base.controller.JeecgController;
30
+import org.springframework.beans.factory.annotation.Autowired;
31
+import org.springframework.web.bind.annotation.*;
32
+import org.springframework.web.multipart.MultipartFile;
33
+import org.springframework.web.multipart.MultipartHttpServletRequest;
34
+import org.springframework.web.servlet.ModelAndView;
35
+import com.alibaba.fastjson.JSON;
36
+import io.swagger.annotations.Api;
37
+import io.swagger.annotations.ApiOperation;
38
+import org.jeecg.common.aspect.annotation.AutoLog;
39
+import org.apache.shiro.authz.annotation.RequiresPermissions;
40
+
41
+ /**
42
+ * @Description: app_scene_cost_sap_ztmmx004
43
+ * @Author: jeecg-boot
44
+ * @Date:   2024-10-17
45
+ * @Version: V1.0
46
+ */
47
+@Api(tags="app_scene_cost_sap_ztmmx004")
48
+@RestController
49
+@RequestMapping("/cost/appSceneCostSapZtmmx004")
50
+@Slf4j
51
+public class AppSceneCostSapZtmmx004Controller extends JeecgController<AppSceneCostSapZtmmx004, IAppSceneCostSapZtmmx004Service> {
52
+	@Autowired
53
+	private IAppSceneCostSapZtmmx004Service appSceneCostSapZtmmx004Service;
54
+	
55
+	/**
56
+	 * 分页列表查询
57
+	 *
58
+	 * @param appSceneCostSapZtmmx004
59
+	 * @param pageNo
60
+	 * @param pageSize
61
+	 * @param req
62
+	 * @return
63
+	 */
64
+	//@AutoLog(value = "app_scene_cost_sap_ztmmx004-分页列表查询")
65
+	@ApiOperation(value="app_scene_cost_sap_ztmmx004-分页列表查询", notes="app_scene_cost_sap_ztmmx004-分页列表查询")
66
+	@GetMapping(value = "/list")
67
+	public Result<IPage<AppSceneCostSapZtmmx004>> queryPageList(AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004,
68
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
69
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
70
+								   HttpServletRequest req) {
71
+		QueryWrapper<AppSceneCostSapZtmmx004> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapZtmmx004, req.getParameterMap());
72
+		Page<AppSceneCostSapZtmmx004> page = new Page<AppSceneCostSapZtmmx004>(pageNo, pageSize);
73
+		IPage<AppSceneCostSapZtmmx004> pageList = appSceneCostSapZtmmx004Service.page(page, queryWrapper);
74
+		return Result.OK(pageList);
75
+	}
76
+	
77
+	/**
78
+	 *   添加
79
+	 *
80
+	 * @param appSceneCostSapZtmmx004
81
+	 * @return
82
+	 */
83
+	@AutoLog(value = "app_scene_cost_sap_ztmmx004-添加")
84
+	@ApiOperation(value="app_scene_cost_sap_ztmmx004-添加", notes="app_scene_cost_sap_ztmmx004-添加")
85
+	@RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:add")
86
+	@PostMapping(value = "/add")
87
+	public Result<String> add(@RequestBody AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004) {
88
+		appSceneCostSapZtmmx004Service.save(appSceneCostSapZtmmx004);
89
+		return Result.OK("添加成功!");
90
+	}
91
+	
92
+	/**
93
+	 *  编辑
94
+	 *
95
+	 * @param appSceneCostSapZtmmx004
96
+	 * @return
97
+	 */
98
+	@AutoLog(value = "app_scene_cost_sap_ztmmx004-编辑")
99
+	@ApiOperation(value="app_scene_cost_sap_ztmmx004-编辑", notes="app_scene_cost_sap_ztmmx004-编辑")
100
+	@RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:edit")
101
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
102
+	public Result<String> edit(@RequestBody AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004) {
103
+		appSceneCostSapZtmmx004Service.updateById(appSceneCostSapZtmmx004);
104
+		return Result.OK("编辑成功!");
105
+	}
106
+	
107
+	/**
108
+	 *   通过id删除
109
+	 *
110
+	 * @param id
111
+	 * @return
112
+	 */
113
+	@AutoLog(value = "app_scene_cost_sap_ztmmx004-通过id删除")
114
+	@ApiOperation(value="app_scene_cost_sap_ztmmx004-通过id删除", notes="app_scene_cost_sap_ztmmx004-通过id删除")
115
+	@RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:delete")
116
+	@DeleteMapping(value = "/delete")
117
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
118
+		appSceneCostSapZtmmx004Service.removeById(id);
119
+		return Result.OK("删除成功!");
120
+	}
121
+	
122
+	/**
123
+	 *  批量删除
124
+	 *
125
+	 * @param ids
126
+	 * @return
127
+	 */
128
+	@AutoLog(value = "app_scene_cost_sap_ztmmx004-批量删除")
129
+	@ApiOperation(value="app_scene_cost_sap_ztmmx004-批量删除", notes="app_scene_cost_sap_ztmmx004-批量删除")
130
+	@RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:deleteBatch")
131
+	@DeleteMapping(value = "/deleteBatch")
132
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
133
+		this.appSceneCostSapZtmmx004Service.removeByIds(Arrays.asList(ids.split(",")));
134
+		return Result.OK("批量删除成功!");
135
+	}
136
+	
137
+	/**
138
+	 * 通过id查询
139
+	 *
140
+	 * @param id
141
+	 * @return
142
+	 */
143
+	//@AutoLog(value = "app_scene_cost_sap_ztmmx004-通过id查询")
144
+	@ApiOperation(value="app_scene_cost_sap_ztmmx004-通过id查询", notes="app_scene_cost_sap_ztmmx004-通过id查询")
145
+	@GetMapping(value = "/queryById")
146
+	public Result<AppSceneCostSapZtmmx004> queryById(@RequestParam(name="id",required=true) String id) {
147
+		AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004 = appSceneCostSapZtmmx004Service.getById(id);
148
+		if(appSceneCostSapZtmmx004==null) {
149
+			return Result.error("未找到对应数据");
150
+		}
151
+		return Result.OK(appSceneCostSapZtmmx004);
152
+	}
153
+
154
+    /**
155
+    * 导出excel
156
+    *
157
+    * @param request
158
+    * @param appSceneCostSapZtmmx004
159
+    */
160
+    @RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:exportXls")
161
+    @RequestMapping(value = "/exportXls")
162
+    public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004) {
163
+        return super.exportXls(request, appSceneCostSapZtmmx004, AppSceneCostSapZtmmx004.class, "app_scene_cost_sap_ztmmx004");
164
+    }
165
+
166
+    /**
167
+      * 通过excel导入数据
168
+    *
169
+    * @param request
170
+    * @param response
171
+    * @return
172
+    */
173
+    @RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:importExcel")
174
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
175
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
176
+        return super.importExcel(request, response, AppSceneCostSapZtmmx004.class);
177
+    }
178
+
179
+}

+ 179
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardBomController.java Просмотреть файл

@@ -0,0 +1,179 @@
1
+package com.zzsmart.qomo.kn.cost.manage.controller;
2
+
3
+import java.util.Arrays;
4
+import java.util.List;
5
+import java.util.Map;
6
+import java.util.stream.Collectors;
7
+import java.io.IOException;
8
+import java.io.UnsupportedEncodingException;
9
+import java.net.URLDecoder;
10
+import javax.servlet.http.HttpServletRequest;
11
+import javax.servlet.http.HttpServletResponse;
12
+
13
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardBom;
14
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostStandardBomService;
15
+import org.jeecg.common.api.vo.Result;
16
+import org.jeecg.common.system.query.QueryGenerator;
17
+import org.jeecg.common.util.oConvertUtils;
18
+
19
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
20
+import com.baomidou.mybatisplus.core.metadata.IPage;
21
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
22
+import lombok.extern.slf4j.Slf4j;
23
+
24
+import org.jeecgframework.poi.excel.ExcelImportUtil;
25
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
26
+import org.jeecgframework.poi.excel.entity.ExportParams;
27
+import org.jeecgframework.poi.excel.entity.ImportParams;
28
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
29
+import org.jeecg.common.system.base.controller.JeecgController;
30
+import org.springframework.beans.factory.annotation.Autowired;
31
+import org.springframework.web.bind.annotation.*;
32
+import org.springframework.web.multipart.MultipartFile;
33
+import org.springframework.web.multipart.MultipartHttpServletRequest;
34
+import org.springframework.web.servlet.ModelAndView;
35
+import com.alibaba.fastjson.JSON;
36
+import io.swagger.annotations.Api;
37
+import io.swagger.annotations.ApiOperation;
38
+import org.jeecg.common.aspect.annotation.AutoLog;
39
+import org.apache.shiro.authz.annotation.RequiresPermissions;
40
+
41
+ /**
42
+ * @Description: app_scene_cost_standard_bom
43
+ * @Author: jeecg-boot
44
+ * @Date:   2024-10-15
45
+ * @Version: V1.0
46
+ */
47
+@Api(tags="app_scene_cost_standard_bom")
48
+@RestController
49
+@RequestMapping("/cost/appSceneCostStandardBom")
50
+@Slf4j
51
+public class AppSceneCostStandardBomController extends JeecgController<AppSceneCostStandardBom, IAppSceneCostStandardBomService> {
52
+	@Autowired
53
+	private IAppSceneCostStandardBomService appSceneCostStandardBomService;
54
+	
55
+	/**
56
+	 * 分页列表查询
57
+	 *
58
+	 * @param appSceneCostStandardBom
59
+	 * @param pageNo
60
+	 * @param pageSize
61
+	 * @param req
62
+	 * @return
63
+	 */
64
+	//@AutoLog(value = "app_scene_cost_standard_bom-分页列表查询")
65
+	@ApiOperation(value="app_scene_cost_standard_bom-分页列表查询", notes="app_scene_cost_standard_bom-分页列表查询")
66
+	@GetMapping(value = "/list")
67
+	public Result<IPage<AppSceneCostStandardBom>> queryPageList(AppSceneCostStandardBom appSceneCostStandardBom,
68
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
69
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
70
+								   HttpServletRequest req) {
71
+		QueryWrapper<AppSceneCostStandardBom> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostStandardBom, req.getParameterMap());
72
+		Page<AppSceneCostStandardBom> page = new Page<AppSceneCostStandardBom>(pageNo, pageSize);
73
+		IPage<AppSceneCostStandardBom> pageList = appSceneCostStandardBomService.page(page, queryWrapper);
74
+		return Result.OK(pageList);
75
+	}
76
+	
77
+	/**
78
+	 *   添加
79
+	 *
80
+	 * @param appSceneCostStandardBom
81
+	 * @return
82
+	 */
83
+	@AutoLog(value = "app_scene_cost_standard_bom-添加")
84
+	@ApiOperation(value="app_scene_cost_standard_bom-添加", notes="app_scene_cost_standard_bom-添加")
85
+	@RequiresPermissions("cost:app_scene_cost_standard_bom:add")
86
+	@PostMapping(value = "/add")
87
+	public Result<String> add(@RequestBody AppSceneCostStandardBom appSceneCostStandardBom) {
88
+		appSceneCostStandardBomService.save(appSceneCostStandardBom);
89
+		return Result.OK("添加成功!");
90
+	}
91
+	
92
+	/**
93
+	 *  编辑
94
+	 *
95
+	 * @param appSceneCostStandardBom
96
+	 * @return
97
+	 */
98
+	@AutoLog(value = "app_scene_cost_standard_bom-编辑")
99
+	@ApiOperation(value="app_scene_cost_standard_bom-编辑", notes="app_scene_cost_standard_bom-编辑")
100
+	@RequiresPermissions("cost:app_scene_cost_standard_bom:edit")
101
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
102
+	public Result<String> edit(@RequestBody AppSceneCostStandardBom appSceneCostStandardBom) {
103
+		appSceneCostStandardBomService.updateById(appSceneCostStandardBom);
104
+		return Result.OK("编辑成功!");
105
+	}
106
+	
107
+	/**
108
+	 *   通过id删除
109
+	 *
110
+	 * @param id
111
+	 * @return
112
+	 */
113
+	@AutoLog(value = "app_scene_cost_standard_bom-通过id删除")
114
+	@ApiOperation(value="app_scene_cost_standard_bom-通过id删除", notes="app_scene_cost_standard_bom-通过id删除")
115
+	@RequiresPermissions("cost:app_scene_cost_standard_bom:delete")
116
+	@DeleteMapping(value = "/delete")
117
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
118
+		appSceneCostStandardBomService.removeById(id);
119
+		return Result.OK("删除成功!");
120
+	}
121
+	
122
+	/**
123
+	 *  批量删除
124
+	 *
125
+	 * @param ids
126
+	 * @return
127
+	 */
128
+	@AutoLog(value = "app_scene_cost_standard_bom-批量删除")
129
+	@ApiOperation(value="app_scene_cost_standard_bom-批量删除", notes="app_scene_cost_standard_bom-批量删除")
130
+	@RequiresPermissions("cost:app_scene_cost_standard_bom:deleteBatch")
131
+	@DeleteMapping(value = "/deleteBatch")
132
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
133
+		this.appSceneCostStandardBomService.removeByIds(Arrays.asList(ids.split(",")));
134
+		return Result.OK("批量删除成功!");
135
+	}
136
+	
137
+	/**
138
+	 * 通过id查询
139
+	 *
140
+	 * @param id
141
+	 * @return
142
+	 */
143
+	//@AutoLog(value = "app_scene_cost_standard_bom-通过id查询")
144
+	@ApiOperation(value="app_scene_cost_standard_bom-通过id查询", notes="app_scene_cost_standard_bom-通过id查询")
145
+	@GetMapping(value = "/queryById")
146
+	public Result<AppSceneCostStandardBom> queryById(@RequestParam(name="id",required=true) String id) {
147
+		AppSceneCostStandardBom appSceneCostStandardBom = appSceneCostStandardBomService.getById(id);
148
+		if(appSceneCostStandardBom==null) {
149
+			return Result.error("未找到对应数据");
150
+		}
151
+		return Result.OK(appSceneCostStandardBom);
152
+	}
153
+
154
+    /**
155
+    * 导出excel
156
+    *
157
+    * @param request
158
+    * @param appSceneCostStandardBom
159
+    */
160
+    @RequiresPermissions("cost:app_scene_cost_standard_bom:exportXls")
161
+    @RequestMapping(value = "/exportXls")
162
+    public ModelAndView exportXls(HttpServletRequest request, AppSceneCostStandardBom appSceneCostStandardBom) {
163
+        return super.exportXls(request, appSceneCostStandardBom, AppSceneCostStandardBom.class, "app_scene_cost_standard_bom");
164
+    }
165
+
166
+    /**
167
+      * 通过excel导入数据
168
+    *
169
+    * @param request
170
+    * @param response
171
+    * @return
172
+    */
173
+    @RequiresPermissions("cost:app_scene_cost_standard_bom:importExcel")
174
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
175
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
176
+        return super.importExcel(request, response, AppSceneCostStandardBom.class);
177
+    }
178
+
179
+}

+ 3
- 3
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardResultController.java Просмотреть файл

@@ -56,7 +56,7 @@ public class AppSceneCostStandardResultController extends JeecgController<AppSce
56 56
             appSceneCostStandardResult.setVersionNumber(" ");
57 57
         }
58 58
         QueryWrapper<AppSceneCostStandardResult> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostStandardResult, req.getParameterMap());
59
-        queryWrapper.orderByAsc("layer");
59
+        queryWrapper.orderByAsc("id");
60 60
         Page<AppSceneCostStandardResult> page = new Page<AppSceneCostStandardResult>(pageNo, pageSize);
61 61
         IPage<AppSceneCostStandardResult> pageList = appSceneCostStandardResultService.page(page, queryWrapper);
62 62
 //        IPage<AppSceneCostStandardResultVO> newpageList = new Page<>();
@@ -182,8 +182,8 @@ public class AppSceneCostStandardResultController extends JeecgController<AppSce
182 182
 //    //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:exportXls")
183 183
     @GetMapping(value = "/exportXls")
184 184
     @ApiOperation(value = "cost-单行查询导出", notes = "cost-单行查询导出")
185
-    public ModelAndView exportXls(HttpServletRequest request, AppSceneCostStandardResult appSceneCostStandardDetail) {
186
-        return super.exportXls(request, appSceneCostStandardDetail, AppSceneCostStandardResult.class, "标准成本单行导出");
185
+    public ModelAndView exportXls(HttpServletRequest request, AppSceneCostStandardResult appSceneCostStandardResult) {
186
+        return appSceneCostStandardResultService.exportXls2(request, appSceneCostStandardResult, AppSceneCostStandardResult.class, "标准成本单行导出");
187 187
     }
188 188
 
189 189
 //    /**

+ 81
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostActual.java Просмотреть файл

@@ -0,0 +1,81 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import java.io.Serializable;
4
+import java.io.UnsupportedEncodingException;
5
+import java.util.Date;
6
+import java.math.BigDecimal;
7
+import com.baomidou.mybatisplus.annotation.IdType;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import com.baomidou.mybatisplus.annotation.TableName;
10
+import com.baomidou.mybatisplus.annotation.TableLogic;
11
+import lombok.Builder;
12
+import lombok.Data;
13
+import com.fasterxml.jackson.annotation.JsonFormat;
14
+import org.springframework.format.annotation.DateTimeFormat;
15
+import org.jeecgframework.poi.excel.annotation.Excel;
16
+import org.jeecg.common.aspect.annotation.Dict;
17
+import io.swagger.annotations.ApiModel;
18
+import io.swagger.annotations.ApiModelProperty;
19
+import lombok.EqualsAndHashCode;
20
+import lombok.experimental.Accessors;
21
+
22
+/**
23
+ * @Description: app_scene_cost_actual
24
+ * @Author: jeecg-boot
25
+ * @Date:   2024-10-15
26
+ * @Version: V1.0
27
+ */
28
+@Data
29
+@Builder
30
+@TableName("app_scene_cost_actual")
31
+@Accessors(chain = true)
32
+@EqualsAndHashCode(callSuper = false)
33
+@ApiModel(value="app_scene_cost_actual对象", description="app_scene_cost_actual")
34
+public class AppSceneCostActual implements Serializable {
35
+    private static final long serialVersionUID = 1L;
36
+
37
+	/**主键*/
38
+	@TableId(type = IdType.AUTO)
39
+    @ApiModelProperty(value = "主键")
40
+    private Integer id;
41
+	/**工厂*/
42
+	@Excel(name = "工厂", width = 15)
43
+    @ApiModelProperty(value = "工厂")
44
+    private String werks;
45
+	/**物料编号*/
46
+	@Excel(name = "物料编号", width = 15)
47
+    @ApiModelProperty(value = "物料编号")
48
+    private String matnr;
49
+	/**会计期间*/
50
+	@Excel(name = "会计期间", width = 15)
51
+    @ApiModelProperty(value = "会计期间")
52
+    private String ymonth;
53
+	/**版本*/
54
+	@Excel(name = "版本", width = 15)
55
+    @ApiModelProperty(value = "版本")
56
+    private String version;
57
+    /**版本*/
58
+    @Excel(name = "订单号", width = 15)
59
+    @ApiModelProperty(value = "订单号")
60
+    private String aufnr;
61
+	/**状态*/
62
+	@Excel(name = "状态", width = 15)
63
+    @ApiModelProperty(value = "状态")
64
+    private Integer status;
65
+	/**创建人*/
66
+    @ApiModelProperty(value = "创建人")
67
+    private Integer createBy;
68
+	/**创建时间*/
69
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
70
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
71
+    @ApiModelProperty(value = "创建时间")
72
+    private Date createTime;
73
+	/**更新人*/
74
+    @ApiModelProperty(value = "更新人")
75
+    private Integer updateBy;
76
+	/**更新时间*/
77
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
78
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
79
+    @ApiModelProperty(value = "更新时间")
80
+    private Date updateTime;
81
+}

+ 59
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostAufnrMatnr.java Просмотреть файл

@@ -0,0 +1,59 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import java.io.Serializable;
4
+import java.io.UnsupportedEncodingException;
5
+import java.util.Date;
6
+import java.math.BigDecimal;
7
+import com.baomidou.mybatisplus.annotation.IdType;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import com.baomidou.mybatisplus.annotation.TableName;
10
+import com.baomidou.mybatisplus.annotation.TableLogic;
11
+import lombok.Data;
12
+import com.fasterxml.jackson.annotation.JsonFormat;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+import org.jeecgframework.poi.excel.annotation.Excel;
15
+import org.jeecg.common.aspect.annotation.Dict;
16
+import io.swagger.annotations.ApiModel;
17
+import io.swagger.annotations.ApiModelProperty;
18
+import lombok.EqualsAndHashCode;
19
+import lombok.experimental.Accessors;
20
+
21
+/**
22
+ * @Description: app_scene_cost_aufnr_matnr
23
+ * @Author: jeecg-boot
24
+ * @Date:   2024-10-05
25
+ * @Version: V1.0
26
+ */
27
+@Data
28
+@TableName("app_scene_cost_aufnr_matnr")
29
+@Accessors(chain = true)
30
+@EqualsAndHashCode(callSuper = false)
31
+@ApiModel(value="app_scene_cost_aufnr_matnr对象", description="app_scene_cost_aufnr_matnr")
32
+public class AppSceneCostAufnrMatnr implements Serializable {
33
+    private static final long serialVersionUID = 1L;
34
+
35
+	/**id*/
36
+	@TableId(type = IdType.ASSIGN_ID)
37
+    @ApiModelProperty(value = "id")
38
+    private Integer id;
39
+	/**物料号*/
40
+	@Excel(name = "物料号", width = 15)
41
+    @ApiModelProperty(value = "物料号")
42
+    private String matnr;
43
+	/**物料名称*/
44
+	@Excel(name = "物料名称", width = 15)
45
+    @ApiModelProperty(value = "物料名称")
46
+    private String maktx;
47
+	/**内部订单号*/
48
+	@Excel(name = "内部订单号", width = 15)
49
+    @ApiModelProperty(value = "内部订单号")
50
+    private String aufnr;
51
+	/**内部订单描述*/
52
+	@Excel(name = "内部订单描述", width = 15)
53
+    @ApiModelProperty(value = "内部订单描述")
54
+    private String aufnrDes;
55
+	/**年份*/
56
+	@Excel(name = "年份", width = 15)
57
+    @ApiModelProperty(value = "年份")
58
+    private String year;
59
+}

+ 71
- 4
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostCount.java Просмотреть файл

@@ -12,6 +12,7 @@ import org.jeecgframework.poi.excel.annotation.Excel;
12 12
 import org.springframework.format.annotation.DateTimeFormat;
13 13
 
14 14
 import java.io.Serializable;
15
+import java.math.BigDecimal;
15 16
 import java.util.Date;
16 17
 
17 18
 /**
@@ -34,7 +35,7 @@ public class AppSceneCostCount implements Serializable {
34 35
     /**
35 36
      * 主键
36 37
      */
37
-    @TableId(type = IdType.ASSIGN_ID)
38
+    @TableId(type = IdType.AUTO)
38 39
     @ApiModelProperty(value = "主键")
39 40
     private Integer id;
40 41
     /**
@@ -46,9 +47,9 @@ public class AppSceneCostCount implements Serializable {
46 47
     /**
47 48
      * 图号
48 49
      */
49
-    @Excel(name = "图号", width = 15)
50
-    @ApiModelProperty(value = "图号")
51
-    private String drawingNo;
50
+    @Excel(name = "物料描述", width = 15)
51
+    @ApiModelProperty(value = "物料描述")
52
+    private String maktx;
52 53
     /**
53 54
      * stage
54 55
      */
@@ -79,6 +80,72 @@ public class AppSceneCostCount implements Serializable {
79 80
     @Excel(name = "标准成本版本", width = 15)
80 81
     @ApiModelProperty(value = "标准成本版本")
81 82
     private String costVersion;
83
+    /**
84
+     * 模型版本
85
+     */
86
+    @Excel(name = "工厂", width = 15)
87
+    @ApiModelProperty(value = "工厂")
88
+    private String werks;
89
+    /**
90
+     * 模型版本
91
+     */
92
+    @Excel(name = "内部订单号", width = 15)
93
+    @ApiModelProperty(value = "内部订单号")
94
+    private String aufnr;
95
+    /**
96
+     * 模型版本
97
+     */
98
+    @Excel(name = "总标准成本", width = 15)
99
+    @ApiModelProperty(value = "总标准成本")
100
+    private BigDecimal standardTotal;
101
+    /**
102
+     * 模型版本
103
+     */
104
+    @Excel(name = "材料成本", width = 15)
105
+    @ApiModelProperty(value = "材料成本")
106
+    private BigDecimal materialCost;
107
+    /**
108
+     * 模型版本
109
+     */
110
+    @Excel(name = "直接人工", width = 15)
111
+    @ApiModelProperty(value = "直接人工")
112
+    private BigDecimal laborCost;
113
+    /**
114
+     * 模型版本
115
+     */
116
+    @Excel(name = "折旧", width = 15)
117
+    @ApiModelProperty(value = "折旧")
118
+    private BigDecimal equipCost;
119
+    /**
120
+     * 模型版本
121
+     */
122
+    @Excel(name = "燃动力", width = 15)
123
+    @ApiModelProperty(value = "燃动力")
124
+    private BigDecimal fuelCost;
125
+    /**
126
+     * 模型版本
127
+     */
128
+    @Excel(name = "辅料", width = 15)
129
+    @ApiModelProperty(value = "辅料")
130
+    private BigDecimal auxiCost;
131
+    /**
132
+     * 模型版本
133
+     */
134
+    @Excel(name = "其他费用", width = 15)
135
+    @ApiModelProperty(value = "其他费用")
136
+    private BigDecimal otherCost;
137
+    /**
138
+     * 模型版本
139
+     */
140
+    @Excel(name = "人工工时(分钟)", width = 15)
141
+    @ApiModelProperty(value = "人工工时(分钟)")
142
+    private BigDecimal laborHour;
143
+    /**
144
+     * 模型版本
145
+     */
146
+    @Excel(name = "机器工时(分钟)", width = 15)
147
+    @ApiModelProperty(value = "机器工时(分钟)")
148
+    private BigDecimal machineHour;
82 149
     /**
83 150
      * 创建人
84 151
      */

+ 151
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostInvoice.java Просмотреть файл

@@ -0,0 +1,151 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import java.io.Serializable;
4
+import java.io.UnsupportedEncodingException;
5
+import java.util.Date;
6
+import java.math.BigDecimal;
7
+import com.baomidou.mybatisplus.annotation.IdType;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import com.baomidou.mybatisplus.annotation.TableName;
10
+import com.baomidou.mybatisplus.annotation.TableLogic;
11
+import lombok.Data;
12
+import com.fasterxml.jackson.annotation.JsonFormat;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+import org.jeecgframework.poi.excel.annotation.Excel;
15
+import org.jeecg.common.aspect.annotation.Dict;
16
+import io.swagger.annotations.ApiModel;
17
+import io.swagger.annotations.ApiModelProperty;
18
+import lombok.EqualsAndHashCode;
19
+import lombok.experimental.Accessors;
20
+
21
+/**
22
+ * @Description: app_scene_cost_invoice
23
+ * @Author: jeecg-boot
24
+ * @Date:   2024-09-22
25
+ * @Version: V1.0
26
+ */
27
+@Data
28
+@TableName("app_scene_cost_invoice")
29
+@Accessors(chain = true)
30
+@EqualsAndHashCode(callSuper = false)
31
+@ApiModel(value="app_scene_cost_invoice对象", description="app_scene_cost_invoice")
32
+public class AppSceneCostInvoice implements Serializable {
33
+    private static final long serialVersionUID = 1L;
34
+
35
+	/**matnr*/
36
+	@Excel(name = "matnr", width = 15)
37
+    @ApiModelProperty(value = "matnr")
38
+    private String matnr;
39
+	/**posnr*/
40
+	@Excel(name = "posnr", width = 15)
41
+    @ApiModelProperty(value = "posnr")
42
+    private String posnr;
43
+	/**vbeln*/
44
+	@Excel(name = "vbeln", width = 15)
45
+    @ApiModelProperty(value = "vbeln")
46
+    private String vbeln;
47
+	/**aupos*/
48
+	@Excel(name = "aupos", width = 15)
49
+    @ApiModelProperty(value = "aupos")
50
+    private String aupos;
51
+	/**aubel*/
52
+	@Excel(name = "aubel", width = 15)
53
+    @ApiModelProperty(value = "aubel")
54
+    private String aubel;
55
+	/**bukrs*/
56
+	@Excel(name = "bukrs", width = 15)
57
+    @ApiModelProperty(value = "bukrs")
58
+    private String bukrs;
59
+	/**werks*/
60
+	@Excel(name = "werks", width = 15)
61
+    @ApiModelProperty(value = "werks")
62
+    private String werks;
63
+	/**gjahr*/
64
+	@Excel(name = "gjahr", width = 15)
65
+    @ApiModelProperty(value = "gjahr")
66
+    private String gjahr;
67
+	/**poper*/
68
+	@Excel(name = "poper", width = 15)
69
+    @ApiModelProperty(value = "poper")
70
+    private String poper;
71
+	/**kunrg*/
72
+	@Excel(name = "kunrg", width = 15)
73
+    @ApiModelProperty(value = "kunrg")
74
+    private String kunrg;
75
+	/**vkbur*/
76
+	@Excel(name = "vkbur", width = 15)
77
+    @ApiModelProperty(value = "vkbur")
78
+    private String vkbur;
79
+	/**bezei*/
80
+	@Excel(name = "bezei", width = 15)
81
+    @ApiModelProperty(value = "bezei")
82
+    private String bezei;
83
+	/**fkdat*/
84
+	@Excel(name = "fkdat", width = 15)
85
+    @ApiModelProperty(value = "fkdat")
86
+    private String fkdat;
87
+	/**kurrf*/
88
+	@Excel(name = "kurrf", width = 15)
89
+    @ApiModelProperty(value = "kurrf")
90
+    private String kurrf;
91
+	/**erdat*/
92
+	@Excel(name = "erdat", width = 15)
93
+    @ApiModelProperty(value = "erdat")
94
+    private String erdat;
95
+	/**netwr*/
96
+	@Excel(name = "netwr", width = 15)
97
+    @ApiModelProperty(value = "netwr")
98
+    private BigDecimal netwr;
99
+	/**mwsbp*/
100
+	@Excel(name = "mwsbp", width = 15)
101
+    @ApiModelProperty(value = "mwsbp")
102
+    private BigDecimal mwsbp;
103
+	/**shkzg*/
104
+	@Excel(name = "shkzg", width = 15)
105
+    @ApiModelProperty(value = "shkzg")
106
+    private String shkzg;
107
+	/**fkimg*/
108
+	@Excel(name = "fkimg", width = 15)
109
+    @ApiModelProperty(value = "fkimg")
110
+    private BigDecimal fkimg;
111
+	/**name1*/
112
+	@Excel(name = "name1", width = 15)
113
+    @ApiModelProperty(value = "name1")
114
+    private String name1;
115
+	/**sortl*/
116
+	@Excel(name = "sortl", width = 15)
117
+    @ApiModelProperty(value = "sortl")
118
+    private String sortl;
119
+	/**spart*/
120
+	@Excel(name = "spart", width = 15)
121
+    @ApiModelProperty(value = "spart")
122
+    private String spart;
123
+	/**zzthzq*/
124
+	@Excel(name = "zzthzq", width = 15)
125
+    @ApiModelProperty(value = "zzthzq")
126
+    private String zzthzq;
127
+	/**yuanbiPrice*/
128
+	@Excel(name = "yuanbiPrice", width = 15)
129
+    @ApiModelProperty(value = "yuanbiPrice")
130
+    private BigDecimal yuanbiPrice;
131
+	/**yuanbiTotal*/
132
+	@Excel(name = "yuanbiTotal", width = 15)
133
+    @ApiModelProperty(value = "yuanbiTotal")
134
+    private BigDecimal yuanbiTotal;
135
+	/**benbiPrice*/
136
+	@Excel(name = "benbiPrice", width = 15)
137
+    @ApiModelProperty(value = "benbiPrice")
138
+    private BigDecimal benbiPrice;
139
+	/**benbiTotal*/
140
+	@Excel(name = "benbiTotal", width = 15)
141
+    @ApiModelProperty(value = "benbiTotal")
142
+    private BigDecimal benbiTotal;
143
+	/**maktx*/
144
+	@Excel(name = "maktx", width = 15)
145
+    @ApiModelProperty(value = "maktx")
146
+    private String maktx;
147
+	/**fkart*/
148
+	@Excel(name = "fkart", width = 15)
149
+    @ApiModelProperty(value = "fkart")
150
+    private String fkart;
151
+}

+ 83
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostMiningAufnr.java Просмотреть файл

@@ -0,0 +1,83 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import java.io.Serializable;
4
+import java.io.UnsupportedEncodingException;
5
+import java.util.Date;
6
+import java.math.BigDecimal;
7
+import com.baomidou.mybatisplus.annotation.IdType;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import com.baomidou.mybatisplus.annotation.TableName;
10
+import com.baomidou.mybatisplus.annotation.TableLogic;
11
+import lombok.Data;
12
+import com.fasterxml.jackson.annotation.JsonFormat;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+import org.jeecgframework.poi.excel.annotation.Excel;
15
+import org.jeecg.common.aspect.annotation.Dict;
16
+import io.swagger.annotations.ApiModel;
17
+import io.swagger.annotations.ApiModelProperty;
18
+import lombok.EqualsAndHashCode;
19
+import lombok.experimental.Accessors;
20
+
21
+/**
22
+ * @Description: app_scene_cost_mining_aufnr
23
+ * @Author: jeecg-boot
24
+ * @Date:   2024-10-15
25
+ * @Version: V1.0
26
+ */
27
+@Data
28
+@TableName("app_scene_cost_mining_aufnr")
29
+@Accessors(chain = true)
30
+@EqualsAndHashCode(callSuper = false)
31
+@ApiModel(value="app_scene_cost_mining_aufnr对象", description="app_scene_cost_mining_aufnr")
32
+public class AppSceneCostMiningAufnr implements Serializable {
33
+    private static final long serialVersionUID = 1L;
34
+
35
+	/**id*/
36
+	@TableId(type = IdType.AUTO)
37
+    @ApiModelProperty(value = "id")
38
+    private Integer id;
39
+	/**resultid*/
40
+	@Excel(name = "resultid", width = 15)
41
+    @ApiModelProperty(value = "resultid")
42
+    private Integer resultid;
43
+	/**matnr*/
44
+	@Excel(name = "matnr", width = 15)
45
+    @ApiModelProperty(value = "matnr")
46
+    private String matnr;
47
+	/**aufnr*/
48
+	@Excel(name = "aufnr", width = 15)
49
+    @ApiModelProperty(value = "aufnr")
50
+    private String aufnr;
51
+	/**costcenter*/
52
+	@Excel(name = "costcenter", width = 15)
53
+    @ApiModelProperty(value = "costcenter")
54
+    private String costcenter;
55
+	/**budat*/
56
+	@Excel(name = "budat", width = 15)
57
+    @ApiModelProperty(value = "budat")
58
+    private String budat;
59
+	/**version*/
60
+	@Excel(name = "version", width = 15)
61
+    @ApiModelProperty(value = "version")
62
+    private String version;
63
+	/**laborratio*/
64
+	@Excel(name = "laborratio", width = 15)
65
+    @ApiModelProperty(value = "laborratio")
66
+    private BigDecimal laborratio;
67
+	/**productratio*/
68
+	@Excel(name = "productratio", width = 15)
69
+    @ApiModelProperty(value = "productratio")
70
+    private BigDecimal productratio;
71
+	/**labordiff*/
72
+	@Excel(name = "labordiff", width = 15)
73
+    @ApiModelProperty(value = "labordiff")
74
+    private BigDecimal labordiff;
75
+	/**productdiff*/
76
+	@Excel(name = "productdiff", width = 15)
77
+    @ApiModelProperty(value = "productdiff")
78
+    private BigDecimal productdiff;
79
+	/**jsondata*/
80
+	@Excel(name = "jsondata", width = 15)
81
+    @ApiModelProperty(value = "jsondata")
82
+    private String jsondata;
83
+}

+ 59
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostMiningDiff.java Просмотреть файл

@@ -0,0 +1,59 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import java.io.Serializable;
4
+import java.io.UnsupportedEncodingException;
5
+import java.util.Date;
6
+import java.math.BigDecimal;
7
+import com.baomidou.mybatisplus.annotation.IdType;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import com.baomidou.mybatisplus.annotation.TableName;
10
+import com.baomidou.mybatisplus.annotation.TableLogic;
11
+import lombok.Data;
12
+import com.fasterxml.jackson.annotation.JsonFormat;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+import org.jeecgframework.poi.excel.annotation.Excel;
15
+import org.jeecg.common.aspect.annotation.Dict;
16
+import io.swagger.annotations.ApiModel;
17
+import io.swagger.annotations.ApiModelProperty;
18
+import lombok.EqualsAndHashCode;
19
+import lombok.experimental.Accessors;
20
+
21
+/**
22
+ * @Description: app_scene_cost_mining_diff
23
+ * @Author: jeecg-boot
24
+ * @Date:   2024-10-15
25
+ * @Version: V1.0
26
+ */
27
+@Data
28
+@TableName("app_scene_cost_mining_diff")
29
+@Accessors(chain = true)
30
+@EqualsAndHashCode(callSuper = false)
31
+@ApiModel(value="app_scene_cost_mining_diff对象", description="app_scene_cost_mining_diff")
32
+public class AppSceneCostMiningDiff implements Serializable {
33
+    private static final long serialVersionUID = 1L;
34
+
35
+	/**id*/
36
+	@TableId(type = IdType.AUTO)
37
+    @ApiModelProperty(value = "id")
38
+    private Integer id;
39
+	/**resultid*/
40
+	@Excel(name = "resultid", width = 15)
41
+    @ApiModelProperty(value = "resultid")
42
+    private Integer resultid;
43
+	/**type*/
44
+	@Excel(name = "type", width = 15)
45
+    @ApiModelProperty(value = "type")
46
+    private String type;
47
+	/**reason*/
48
+	@Excel(name = "reason", width = 15)
49
+    @ApiModelProperty(value = "reason")
50
+    private String reason;
51
+	/**code*/
52
+	@Excel(name = "code", width = 15)
53
+    @ApiModelProperty(value = "code")
54
+    private String code;
55
+	/**value*/
56
+	@Excel(name = "value", width = 15)
57
+    @ApiModelProperty(value = "value")
58
+    private Double value;
59
+}

+ 175
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostMiningLabor.java Просмотреть файл

@@ -0,0 +1,175 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import java.io.Serializable;
4
+import java.io.UnsupportedEncodingException;
5
+import java.util.Date;
6
+import java.math.BigDecimal;
7
+import com.baomidou.mybatisplus.annotation.IdType;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import com.baomidou.mybatisplus.annotation.TableName;
10
+import com.baomidou.mybatisplus.annotation.TableLogic;
11
+import lombok.Data;
12
+import com.fasterxml.jackson.annotation.JsonFormat;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+import org.jeecgframework.poi.excel.annotation.Excel;
15
+import org.jeecg.common.aspect.annotation.Dict;
16
+import io.swagger.annotations.ApiModel;
17
+import io.swagger.annotations.ApiModelProperty;
18
+import lombok.EqualsAndHashCode;
19
+import lombok.experimental.Accessors;
20
+
21
+/**
22
+ * @Description: app_scene_cost_mining_labor
23
+ * @Author: jeecg-boot
24
+ * @Date:   2024-11-05
25
+ * @Version: V1.0
26
+ */
27
+@Data
28
+@TableName("app_scene_cost_mining_labor")
29
+@Accessors(chain = true)
30
+@EqualsAndHashCode(callSuper = false)
31
+@ApiModel(value="app_scene_cost_mining_labor对象", description="app_scene_cost_mining_labor")
32
+public class AppSceneCostMiningLabor implements Serializable {
33
+    private static final long serialVersionUID = 1L;
34
+
35
+	/**id*/
36
+	@TableId(type = IdType.ASSIGN_ID)
37
+    @ApiModelProperty(value = "id")
38
+    private Integer id;
39
+	/**resultid*/
40
+	@Excel(name = "resultid", width = 15)
41
+    @ApiModelProperty(value = "resultid")
42
+    private Integer resultid;
43
+	/**matnr*/
44
+	@Excel(name = "matnr", width = 15)
45
+    @ApiModelProperty(value = "matnr")
46
+    private String matnr;
47
+	/**maktx*/
48
+	@Excel(name = "maktx", width = 15)
49
+    @ApiModelProperty(value = "maktx")
50
+    private String maktx;
51
+	/**menge*/
52
+	@Excel(name = "menge", width = 15)
53
+    @ApiModelProperty(value = "menge")
54
+    private BigDecimal menge;
55
+	/**rgRealUse*/
56
+	@Excel(name = "rgRealUse", width = 15)
57
+    @ApiModelProperty(value = "rgRealUse")
58
+    private BigDecimal rgRealUse;
59
+	/**rgRealCost*/
60
+	@Excel(name = "rgRealCost", width = 15)
61
+    @ApiModelProperty(value = "rgRealCost")
62
+    private BigDecimal rgRealCost;
63
+	/**rgStdUse*/
64
+	@Excel(name = "rgStdUse", width = 15)
65
+    @ApiModelProperty(value = "rgStdUse")
66
+    private BigDecimal rgStdUse;
67
+	/**rgStdCost*/
68
+	@Excel(name = "rgStdCost", width = 15)
69
+    @ApiModelProperty(value = "rgStdCost")
70
+    private BigDecimal rgStdCost;
71
+	/**rgUseDiff*/
72
+	@Excel(name = "rgUseDiff", width = 15)
73
+    @ApiModelProperty(value = "rgUseDiff")
74
+    private BigDecimal rgUseDiff;
75
+	/**rgCostDiff*/
76
+	@Excel(name = "rgCostDiff", width = 15)
77
+    @ApiModelProperty(value = "rgCostDiff")
78
+    private BigDecimal rgCostDiff;
79
+	/**zjRealUse*/
80
+	@Excel(name = "zjRealUse", width = 15)
81
+    @ApiModelProperty(value = "zjRealUse")
82
+    private BigDecimal zjRealUse;
83
+	/**zjRealCost*/
84
+	@Excel(name = "zjRealCost", width = 15)
85
+    @ApiModelProperty(value = "zjRealCost")
86
+    private BigDecimal zjRealCost;
87
+	/**zjStdUse*/
88
+	@Excel(name = "zjStdUse", width = 15)
89
+    @ApiModelProperty(value = "zjStdUse")
90
+    private BigDecimal zjStdUse;
91
+	/**zjStdCost*/
92
+	@Excel(name = "zjStdCost", width = 15)
93
+    @ApiModelProperty(value = "zjStdCost")
94
+    private BigDecimal zjStdCost;
95
+	/**zjUseDiff*/
96
+	@Excel(name = "zjUseDiff", width = 15)
97
+    @ApiModelProperty(value = "zjUseDiff")
98
+    private BigDecimal zjUseDiff;
99
+	/**zjCostDiff*/
100
+	@Excel(name = "zjCostDiff", width = 15)
101
+    @ApiModelProperty(value = "zjCostDiff")
102
+    private BigDecimal zjCostDiff;
103
+	/**rdRealUse*/
104
+	@Excel(name = "rdRealUse", width = 15)
105
+    @ApiModelProperty(value = "rdRealUse")
106
+    private BigDecimal rdRealUse;
107
+	/**rdRealCost*/
108
+	@Excel(name = "rdRealCost", width = 15)
109
+    @ApiModelProperty(value = "rdRealCost")
110
+    private BigDecimal rdRealCost;
111
+	/**rdStdUse*/
112
+	@Excel(name = "rdStdUse", width = 15)
113
+    @ApiModelProperty(value = "rdStdUse")
114
+    private BigDecimal rdStdUse;
115
+	/**rdStdCost*/
116
+	@Excel(name = "rdStdCost", width = 15)
117
+    @ApiModelProperty(value = "rdStdCost")
118
+    private BigDecimal rdStdCost;
119
+	/**rdUseDiff*/
120
+	@Excel(name = "rdUseDiff", width = 15)
121
+    @ApiModelProperty(value = "rdUseDiff")
122
+    private BigDecimal rdUseDiff;
123
+	/**rdCostDiff*/
124
+	@Excel(name = "rdCostDiff", width = 15)
125
+    @ApiModelProperty(value = "rdCostDiff")
126
+    private BigDecimal rdCostDiff;
127
+	/**flRealUse*/
128
+	@Excel(name = "flRealUse", width = 15)
129
+    @ApiModelProperty(value = "flRealUse")
130
+    private BigDecimal flRealUse;
131
+	/**flRealCost*/
132
+	@Excel(name = "flRealCost", width = 15)
133
+    @ApiModelProperty(value = "flRealCost")
134
+    private BigDecimal flRealCost;
135
+	/**flStdUse*/
136
+	@Excel(name = "flStdUse", width = 15)
137
+    @ApiModelProperty(value = "flStdUse")
138
+    private BigDecimal flStdUse;
139
+	/**flStdCost*/
140
+	@Excel(name = "flStdCost", width = 15)
141
+    @ApiModelProperty(value = "flStdCost")
142
+    private BigDecimal flStdCost;
143
+	/**flUseDiff*/
144
+	@Excel(name = "flUseDiff", width = 15)
145
+    @ApiModelProperty(value = "flUseDiff")
146
+    private BigDecimal flUseDiff;
147
+	/**flCostDiff*/
148
+	@Excel(name = "flCostDiff", width = 15)
149
+    @ApiModelProperty(value = "flCostDiff")
150
+    private BigDecimal flCostDiff;
151
+	/**qtRealUse*/
152
+	@Excel(name = "qtRealUse", width = 15)
153
+    @ApiModelProperty(value = "qtRealUse")
154
+    private BigDecimal qtRealUse;
155
+	/**qtRealCost*/
156
+	@Excel(name = "qtRealCost", width = 15)
157
+    @ApiModelProperty(value = "qtRealCost")
158
+    private BigDecimal qtRealCost;
159
+	/**qtStdUse*/
160
+	@Excel(name = "qtStdUse", width = 15)
161
+    @ApiModelProperty(value = "qtStdUse")
162
+    private BigDecimal qtStdUse;
163
+	/**qtStdCost*/
164
+	@Excel(name = "qtStdCost", width = 15)
165
+    @ApiModelProperty(value = "qtStdCost")
166
+    private BigDecimal qtStdCost;
167
+	/**qtUseDiff*/
168
+	@Excel(name = "qtUseDiff", width = 15)
169
+    @ApiModelProperty(value = "qtUseDiff")
170
+    private BigDecimal qtUseDiff;
171
+	/**qtCostDiff*/
172
+	@Excel(name = "qtCostDiff", width = 15)
173
+    @ApiModelProperty(value = "qtCostDiff")
174
+    private BigDecimal qtCostDiff;
175
+}

+ 67
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostMiningMaterial.java Просмотреть файл

@@ -0,0 +1,67 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import java.io.Serializable;
4
+import java.io.UnsupportedEncodingException;
5
+import java.util.Date;
6
+import java.math.BigDecimal;
7
+import com.baomidou.mybatisplus.annotation.IdType;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import com.baomidou.mybatisplus.annotation.TableName;
10
+import com.baomidou.mybatisplus.annotation.TableLogic;
11
+import lombok.Data;
12
+import com.fasterxml.jackson.annotation.JsonFormat;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+import org.jeecgframework.poi.excel.annotation.Excel;
15
+import org.jeecg.common.aspect.annotation.Dict;
16
+import io.swagger.annotations.ApiModel;
17
+import io.swagger.annotations.ApiModelProperty;
18
+import lombok.EqualsAndHashCode;
19
+import lombok.experimental.Accessors;
20
+
21
+/**
22
+ * @Description: app_scene_cost_mining_material
23
+ * @Author: jeecg-boot
24
+ * @Date:   2024-10-15
25
+ * @Version: V1.0
26
+ */
27
+@Data
28
+@TableName("app_scene_cost_mining_material")
29
+@Accessors(chain = true)
30
+@EqualsAndHashCode(callSuper = false)
31
+@ApiModel(value="app_scene_cost_mining_material对象", description="app_scene_cost_mining_material")
32
+public class AppSceneCostMiningMaterial implements Serializable {
33
+    private static final long serialVersionUID = 1L;
34
+
35
+	/**id*/
36
+	@TableId(type = IdType.AUTO)
37
+    @ApiModelProperty(value = "id")
38
+    private Integer id;
39
+	/**resultid*/
40
+	@Excel(name = "resultid", width = 15)
41
+    @ApiModelProperty(value = "resultid")
42
+    private Integer resultid;
43
+	/**matnr*/
44
+	@Excel(name = "matnr", width = 15)
45
+    @ApiModelProperty(value = "matnr")
46
+    private String matnr;
47
+	/**aufnr*/
48
+	@Excel(name = "aufnr", width = 15)
49
+    @ApiModelProperty(value = "aufnr")
50
+    private String aufnr;
51
+	/**version*/
52
+	@Excel(name = "version", width = 15)
53
+    @ApiModelProperty(value = "version")
54
+    private String version;
55
+	/**totaldiff*/
56
+	@Excel(name = "totaldiff", width = 15)
57
+    @ApiModelProperty(value = "totaldiff")
58
+    private BigDecimal totaldiff;
59
+	/**ratio*/
60
+	@Excel(name = "ratio", width = 15)
61
+    @ApiModelProperty(value = "ratio")
62
+    private BigDecimal ratio;
63
+	/**jsondata*/
64
+	@Excel(name = "jsondata", width = 15)
65
+    @ApiModelProperty(value = "jsondata")
66
+    private String jsondata;
67
+}

+ 51
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostMiningReason.java Просмотреть файл

@@ -0,0 +1,51 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import java.io.Serializable;
4
+import java.io.UnsupportedEncodingException;
5
+import java.util.Date;
6
+import java.math.BigDecimal;
7
+import com.baomidou.mybatisplus.annotation.IdType;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import com.baomidou.mybatisplus.annotation.TableName;
10
+import com.baomidou.mybatisplus.annotation.TableLogic;
11
+import lombok.Data;
12
+import com.fasterxml.jackson.annotation.JsonFormat;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+import org.jeecgframework.poi.excel.annotation.Excel;
15
+import org.jeecg.common.aspect.annotation.Dict;
16
+import io.swagger.annotations.ApiModel;
17
+import io.swagger.annotations.ApiModelProperty;
18
+import lombok.EqualsAndHashCode;
19
+import lombok.experimental.Accessors;
20
+
21
+/**
22
+ * @Description: app_scene_cost_mining_reason
23
+ * @Author: jeecg-boot
24
+ * @Date:   2024-10-15
25
+ * @Version: V1.0
26
+ */
27
+@Data
28
+@TableName("app_scene_cost_mining_reason")
29
+@Accessors(chain = true)
30
+@EqualsAndHashCode(callSuper = false)
31
+@ApiModel(value="app_scene_cost_mining_reason对象", description="app_scene_cost_mining_reason")
32
+public class AppSceneCostMiningReason implements Serializable {
33
+    private static final long serialVersionUID = 1L;
34
+
35
+	/**code*/
36
+	@Excel(name = "code", width = 15)
37
+    @ApiModelProperty(value = "code")
38
+    private String code;
39
+	/**reason*/
40
+	@Excel(name = "reason", width = 15)
41
+    @ApiModelProperty(value = "reason")
42
+    private String reason;
43
+	/**level*/
44
+	@Excel(name = "level", width = 15)
45
+    @ApiModelProperty(value = "level")
46
+    private Integer level;
47
+	/**pcode*/
48
+	@Excel(name = "pcode", width = 15)
49
+    @ApiModelProperty(value = "pcode")
50
+    private String pcode;
51
+}

+ 139
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostMiningResult.java Просмотреть файл

@@ -0,0 +1,139 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import java.io.Serializable;
4
+import java.io.UnsupportedEncodingException;
5
+import java.util.Date;
6
+import java.math.BigDecimal;
7
+import com.baomidou.mybatisplus.annotation.IdType;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import com.baomidou.mybatisplus.annotation.TableName;
10
+import com.baomidou.mybatisplus.annotation.TableLogic;
11
+import lombok.Data;
12
+import com.fasterxml.jackson.annotation.JsonFormat;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+import org.jeecgframework.poi.excel.annotation.Excel;
15
+import org.jeecg.common.aspect.annotation.Dict;
16
+import io.swagger.annotations.ApiModel;
17
+import io.swagger.annotations.ApiModelProperty;
18
+import lombok.EqualsAndHashCode;
19
+import lombok.experimental.Accessors;
20
+
21
+/**
22
+ * @Description: app_scene_cost_mining_result
23
+ * @Author: jeecg-boot
24
+ * @Date:   2024-10-15
25
+ * @Version: V1.0
26
+ */
27
+@Data
28
+@TableName("app_scene_cost_mining_result")
29
+@Accessors(chain = true)
30
+@EqualsAndHashCode(callSuper = false)
31
+@ApiModel(value="app_scene_cost_mining_result对象", description="app_scene_cost_mining_result")
32
+public class AppSceneCostMiningResult implements Serializable {
33
+    private static final long serialVersionUID = 1L;
34
+
35
+	/**id*/
36
+	@TableId(type = IdType.AUTO)
37
+    @ApiModelProperty(value = "id")
38
+    private Integer id;
39
+	/**matnr*/
40
+	@Excel(name = "matnr", width = 15)
41
+    @ApiModelProperty(value = "matnr")
42
+    private String matnr;
43
+	/**aufnr*/
44
+	@Excel(name = "aufnr", width = 15)
45
+    @ApiModelProperty(value = "aufnr")
46
+    private String aufnr;
47
+	/**version*/
48
+	@Excel(name = "version", width = 15)
49
+    @ApiModelProperty(value = "version")
50
+    private String version;
51
+	/**wbs*/
52
+	@Excel(name = "wbs", width = 15)
53
+    @ApiModelProperty(value = "wbs")
54
+    private String wbs;
55
+	/**werks*/
56
+	@Excel(name = "werks", width = 15)
57
+    @ApiModelProperty(value = "werks")
58
+    private String werks;
59
+	/**totalreal*/
60
+	@Excel(name = "totalreal", width = 15)
61
+    @ApiModelProperty(value = "totalreal")
62
+    private Double totalreal;
63
+	/**totalstd*/
64
+	@Excel(name = "totalstd", width = 15)
65
+    @ApiModelProperty(value = "totalstd")
66
+    private Double totalstd;
67
+	/**ymonth*/
68
+	@Excel(name = "ymonth", width = 15)
69
+    @ApiModelProperty(value = "ymonth")
70
+    private String ymonth;
71
+	/**lgort*/
72
+	@Excel(name = "lgort", width = 15)
73
+    @ApiModelProperty(value = "lgort")
74
+    private String lgort;
75
+	/**ppsmng*/
76
+	//@Excel(name = "ppsmng", width = 15)
77
+    //@ApiModelProperty(value = "ppsmng")
78
+    //private Double ppsmng;
79
+	/**realmaterial*/
80
+	@Excel(name = "realmaterial", width = 15)
81
+    @ApiModelProperty(value = "realmaterial")
82
+    private Double realmaterial;
83
+	/**stdmaterial*/
84
+	@Excel(name = "stdmaterial", width = 15)
85
+    @ApiModelProperty(value = "stdmaterial")
86
+    private Double stdmaterial;
87
+	/**reallabor*/
88
+	@Excel(name = "reallabor", width = 15)
89
+    @ApiModelProperty(value = "reallabor")
90
+    private Double reallabor;
91
+	/**stdlabor*/
92
+	@Excel(name = "stdlabor", width = 15)
93
+    @ApiModelProperty(value = "stdlabor")
94
+    private Double stdlabor;
95
+	/**realproductcost*/
96
+	@Excel(name = "realproductcost", width = 15)
97
+    @ApiModelProperty(value = "realproductcost")
98
+    private Double realproductcost;
99
+	/**stdproductcost*/
100
+	@Excel(name = "stdproductcost", width = 15)
101
+    @ApiModelProperty(value = "stdproductcost")
102
+    private Double stdproductcost;
103
+	/**status*/
104
+	@Excel(name = "status", width = 15)
105
+    @ApiModelProperty(value = "status")
106
+    private String status;
107
+	/**err*/
108
+	@Excel(name = "err", width = 15)
109
+    @ApiModelProperty(value = "err")
110
+    private String err;
111
+	/**startdate*/
112
+	@Excel(name = "startdate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
113
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
114
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
115
+    @ApiModelProperty(value = "startdate")
116
+    private Date startdate;
117
+	/**enddate*/
118
+	@Excel(name = "enddate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
119
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
120
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
121
+    @ApiModelProperty(value = "enddate")
122
+    private Date enddate;
123
+	/**batchymonth*/
124
+	@Excel(name = "batchymonth", width = 15)
125
+    @ApiModelProperty(value = "batchymonth")
126
+    private String batchymonth;
127
+	/**percent*/
128
+	@Excel(name = "percent", width = 15)
129
+    @ApiModelProperty(value = "percent")
130
+    private Double percent;
131
+	/**projectcate*/
132
+	@Excel(name = "projectcate", width = 15)
133
+    @ApiModelProperty(value = "projectcate")
134
+    private String projectcate;
135
+	/**hastransfer*/
136
+	@Excel(name = "hastransfer", width = 15)
137
+    @ApiModelProperty(value = "hastransfer")
138
+    private Integer hastransfer;
139
+}

+ 24
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostResultValue.java Просмотреть файл

@@ -204,4 +204,28 @@ public class AppSceneCostResultValue implements Serializable {
204 204
     @Excel(name = "层级", width = 15)
205 205
     @ApiModelProperty(value = "层级")
206 206
     private String layer;
207
+
208
+    @Excel(name = "工厂", width = 15)
209
+    @ApiModelProperty(value = "工厂")
210
+    private String werks;
211
+
212
+    @Excel(name = "供应商", width = 15)
213
+    @ApiModelProperty(value = "供应商")
214
+    private String supplier;
215
+
216
+    @Excel(name = "供应商名称", width = 15)
217
+    @ApiModelProperty(value = "供应商名称")
218
+    private String supplierName;
219
+
220
+    @Excel(name = "临时合同估价", width = 15)
221
+    @ApiModelProperty(value = "临时合同估价")
222
+    private BigDecimal ekpoPrice;
223
+
224
+    @Excel(name = "最新开票价格", width = 15)
225
+    @ApiModelProperty(value = "最新开票价格")
226
+    private BigDecimal invoicePrice;
227
+
228
+
229
+    @ApiModelProperty(value = "父层级")
230
+    private String player;
207 231
 }

+ 159
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostSapAfru.java Просмотреть файл

@@ -0,0 +1,159 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import java.io.Serializable;
4
+import java.io.UnsupportedEncodingException;
5
+import java.util.Date;
6
+import java.math.BigDecimal;
7
+import com.baomidou.mybatisplus.annotation.IdType;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import com.baomidou.mybatisplus.annotation.TableName;
10
+import com.baomidou.mybatisplus.annotation.TableLogic;
11
+import lombok.Data;
12
+import com.fasterxml.jackson.annotation.JsonFormat;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+import org.jeecgframework.poi.excel.annotation.Excel;
15
+import org.jeecg.common.aspect.annotation.Dict;
16
+import io.swagger.annotations.ApiModel;
17
+import io.swagger.annotations.ApiModelProperty;
18
+import lombok.EqualsAndHashCode;
19
+import lombok.experimental.Accessors;
20
+
21
+/**
22
+ * @Description: app_scene_cost_sap_afru
23
+ * @Author: jeecg-boot
24
+ * @Date:   2024-10-15
25
+ * @Version: V1.0
26
+ */
27
+@Data
28
+@TableName("app_scene_cost_sap_afru")
29
+@Accessors(chain = true)
30
+@EqualsAndHashCode(callSuper = false)
31
+@ApiModel(value="app_scene_cost_sap_afru对象", description="app_scene_cost_sap_afru")
32
+public class AppSceneCostSapAfru implements Serializable {
33
+    private static final long serialVersionUID = 1L;
34
+
35
+	/**werks*/
36
+	@Excel(name = "werks", width = 15)
37
+    @ApiModelProperty(value = "werks")
38
+    private String werks;
39
+	/**aufnr*/
40
+	@Excel(name = "aufnr", width = 15)
41
+    @ApiModelProperty(value = "aufnr")
42
+    private String aufnr;
43
+	/**mandt*/
44
+	@Excel(name = "mandt", width = 15)
45
+    @ApiModelProperty(value = "mandt")
46
+    private String mandt;
47
+	/**projn*/
48
+	@Excel(name = "projn", width = 15)
49
+    @ApiModelProperty(value = "projn")
50
+    private String projn;
51
+	/**erdat*/
52
+	@Excel(name = "erdat", width = 15)
53
+    @ApiModelProperty(value = "erdat")
54
+    private String erdat;
55
+	/**gstrp*/
56
+	@Excel(name = "gstrp", width = 15)
57
+    @ApiModelProperty(value = "gstrp")
58
+    private String gstrp;
59
+	/**gltri*/
60
+	@Excel(name = "gltri", width = 15)
61
+    @ApiModelProperty(value = "gltri")
62
+    private String gltri;
63
+	/**plnbez*/
64
+	@Excel(name = "plnbez", width = 15)
65
+    @ApiModelProperty(value = "plnbez")
66
+    private String plnbez;
67
+	/**auart*/
68
+	@Excel(name = "auart", width = 15)
69
+    @ApiModelProperty(value = "auart")
70
+    private String auart;
71
+	/**txt*/
72
+	@Excel(name = "txt", width = 15)
73
+    @ApiModelProperty(value = "txt")
74
+    private String txt;
75
+	/**vornr*/
76
+	@Excel(name = "vornr", width = 15)
77
+    @ApiModelProperty(value = "vornr")
78
+    private String vornr;
79
+	/**aufpl*/
80
+	@Excel(name = "aufpl", width = 15)
81
+    @ApiModelProperty(value = "aufpl")
82
+    private String aufpl;
83
+	/**rueck*/
84
+	@Excel(name = "rueck", width = 15)
85
+    @ApiModelProperty(value = "rueck")
86
+    private String rueck;
87
+	/**ltxa1*/
88
+	@Excel(name = "ltxa1", width = 15)
89
+    @ApiModelProperty(value = "ltxa1")
90
+    private String ltxa1;
91
+	/**kostl*/
92
+	@Excel(name = "kostl", width = 15)
93
+    @ApiModelProperty(value = "kostl")
94
+    private String kostl;
95
+	/**budat*/
96
+	@Excel(name = "budat", width = 15)
97
+    @ApiModelProperty(value = "budat")
98
+    private String budat;
99
+	/**ism01*/
100
+	@Excel(name = "ism01", width = 15)
101
+    @ApiModelProperty(value = "ism01")
102
+    private BigDecimal ism01;
103
+	/**ism02*/
104
+	@Excel(name = "ism02", width = 15)
105
+    @ApiModelProperty(value = "ism02")
106
+    private BigDecimal ism02;
107
+	/**ism03*/
108
+	@Excel(name = "ism03", width = 15)
109
+    @ApiModelProperty(value = "ism03")
110
+    private BigDecimal ism03;
111
+	/**ism04*/
112
+	@Excel(name = "ism04", width = 15)
113
+    @ApiModelProperty(value = "ism04")
114
+    private BigDecimal ism04;
115
+	/**ism05*/
116
+	@Excel(name = "ism05", width = 15)
117
+    @ApiModelProperty(value = "ism05")
118
+    private BigDecimal ism05;
119
+	/**ism06*/
120
+	@Excel(name = "ism06", width = 15)
121
+    @ApiModelProperty(value = "ism06")
122
+    private BigDecimal ism06;
123
+	/**isdd*/
124
+	@Excel(name = "isdd", width = 15)
125
+    @ApiModelProperty(value = "isdd")
126
+    private String isdd;
127
+	/**isdz*/
128
+	@Excel(name = "isdz", width = 15)
129
+    @ApiModelProperty(value = "isdz")
130
+    private String isdz;
131
+	/**iedd*/
132
+	@Excel(name = "iedd", width = 15)
133
+    @ApiModelProperty(value = "iedd")
134
+    private String iedd;
135
+	/**iedz*/
136
+	@Excel(name = "iedz", width = 15)
137
+    @ApiModelProperty(value = "iedz")
138
+    private String iedz;
139
+	/**lmnga*/
140
+	@Excel(name = "lmnga", width = 15)
141
+    @ApiModelProperty(value = "lmnga")
142
+    private BigDecimal lmnga;
143
+	/**rmnga*/
144
+	@Excel(name = "rmnga", width = 15)
145
+    @ApiModelProperty(value = "rmnga")
146
+    private BigDecimal rmnga;
147
+	/**xmnga*/
148
+	@Excel(name = "xmnga", width = 15)
149
+    @ApiModelProperty(value = "xmnga")
150
+    private BigDecimal xmnga;
151
+	/**gamng*/
152
+	@Excel(name = "gamng", width = 15)
153
+    @ApiModelProperty(value = "gamng")
154
+    private BigDecimal gamng;
155
+	/**ym*/
156
+	@Excel(name = "ym", width = 15)
157
+    @ApiModelProperty(value = "ym")
158
+    private String ym;
159
+}

+ 115
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostSapEine.java Просмотреть файл

@@ -0,0 +1,115 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import java.io.Serializable;
4
+import java.io.UnsupportedEncodingException;
5
+import java.util.Date;
6
+import java.math.BigDecimal;
7
+import com.baomidou.mybatisplus.annotation.IdType;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import com.baomidou.mybatisplus.annotation.TableName;
10
+import com.baomidou.mybatisplus.annotation.TableLogic;
11
+import lombok.Data;
12
+import com.fasterxml.jackson.annotation.JsonFormat;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+import org.jeecgframework.poi.excel.annotation.Excel;
15
+import org.jeecg.common.aspect.annotation.Dict;
16
+import io.swagger.annotations.ApiModel;
17
+import io.swagger.annotations.ApiModelProperty;
18
+import lombok.EqualsAndHashCode;
19
+import lombok.experimental.Accessors;
20
+
21
+/**
22
+ * @Description: app_scene_cost_sap_eine
23
+ * @Author: jeecg-boot
24
+ * @Date:   2024-09-21
25
+ * @Version: V1.0
26
+ */
27
+@Data
28
+@TableName("app_scene_cost_sap_eine")
29
+@Accessors(chain = true)
30
+@EqualsAndHashCode(callSuper = false)
31
+@ApiModel(value="app_scene_cost_sap_eine对象", description="app_scene_cost_sap_eine")
32
+public class AppSceneCostSapEine implements Serializable {
33
+    private static final long serialVersionUID = 1L;
34
+
35
+	/**客户端*/
36
+	@Excel(name = "客户端", width = 15)
37
+    @ApiModelProperty(value = "客户端")
38
+    private String mandt;
39
+	/**工厂*/
40
+	@Excel(name = "工厂", width = 15)
41
+    @ApiModelProperty(value = "工厂")
42
+    private String werks;
43
+	/**采购组织*/
44
+	@Excel(name = "采购组织", width = 15)
45
+    @ApiModelProperty(value = "采购组织")
46
+    private String ekorg;
47
+	/**采购信息记录分类*/
48
+	@Excel(name = "采购信息记录分类", width = 15)
49
+    @ApiModelProperty(value = "采购信息记录分类")
50
+    private String esokz;
51
+	/**采购信息记录中的净价*/
52
+	@Excel(name = "采购信息记录中的净价", width = 15)
53
+    @ApiModelProperty(value = "采购信息记录中的净价")
54
+    private BigDecimal netpr;
55
+	/**价格单位*/
56
+	@Excel(name = "价格单位", width = 15)
57
+    @ApiModelProperty(value = "价格单位")
58
+    private BigDecimal peinh;
59
+	/**货币码*/
60
+	@Excel(name = "货币码", width = 15)
61
+    @ApiModelProperty(value = "货币码")
62
+    private String waers;
63
+	/**价格有效至*/
64
+	@Excel(name = "价格有效至", width = 15)
65
+    @ApiModelProperty(value = "价格有效至")
66
+    private String prdat;
67
+	/**记录的创建日期*/
68
+	@Excel(name = "记录的创建日期", width = 15)
69
+    @ApiModelProperty(value = "记录的创建日期")
70
+    private String erdat;
71
+	/**采购信息: 组织数据标记为删除*/
72
+	@Excel(name = "采购信息: 组织数据标记为删除", width = 15)
73
+    @ApiModelProperty(value = "采购信息: 组织数据标记为删除")
74
+    private String loekz;
75
+	/**采购信息记录的编号*/
76
+	@Excel(name = "采购信息记录的编号", width = 15)
77
+    @ApiModelProperty(value = "采购信息记录的编号")
78
+    private String infnr;
79
+	/**单价*/
80
+	@Excel(name = "单价", width = 15)
81
+    @ApiModelProperty(value = "单价")
82
+    private BigDecimal price;
83
+	/**汇率*/
84
+	@Excel(name = "汇率", width = 15)
85
+    @ApiModelProperty(value = "汇率")
86
+    private BigDecimal ukurs;
87
+	/**人民币价格*/
88
+	@Excel(name = "人民币价格", width = 15)
89
+    @ApiModelProperty(value = "人民币价格")
90
+    private BigDecimal cnyPrice;
91
+	/**物料编号*/
92
+	@Excel(name = "物料编号", width = 15)
93
+    @ApiModelProperty(value = "物料编号")
94
+    private String matnr;
95
+	/**物料组*/
96
+	@Excel(name = "物料组", width = 15)
97
+    @ApiModelProperty(value = "物料组")
98
+    private String matkl;
99
+	/**采购类型*/
100
+	@Excel(name = "采购类型", width = 15)
101
+    @ApiModelProperty(value = "采购类型")
102
+    private String beskz;
103
+	/**特殊采购类*/
104
+	@Excel(name = "特殊采购类", width = 15)
105
+    @ApiModelProperty(value = "特殊采购类")
106
+    private String sobsl;
107
+	/**供应商编码*/
108
+	@Excel(name = "供应商编码", width = 15)
109
+    @ApiModelProperty(value = "供应商编码")
110
+    private String lifnr;
111
+	/**供应商名称*/
112
+	@Excel(name = "供应商名称", width = 15)
113
+    @ApiModelProperty(value = "供应商名称")
114
+    private String name1;
115
+}

+ 95
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostSapEkpo.java Просмотреть файл

@@ -0,0 +1,95 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import java.io.Serializable;
4
+import java.io.UnsupportedEncodingException;
5
+import java.util.Date;
6
+import java.math.BigDecimal;
7
+import com.baomidou.mybatisplus.annotation.IdType;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import com.baomidou.mybatisplus.annotation.TableName;
10
+import com.baomidou.mybatisplus.annotation.TableLogic;
11
+import lombok.Data;
12
+import com.fasterxml.jackson.annotation.JsonFormat;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+import org.jeecgframework.poi.excel.annotation.Excel;
15
+import org.jeecg.common.aspect.annotation.Dict;
16
+import io.swagger.annotations.ApiModel;
17
+import io.swagger.annotations.ApiModelProperty;
18
+import lombok.EqualsAndHashCode;
19
+import lombok.experimental.Accessors;
20
+
21
+/**
22
+ * @Description: app_scene_cost_sap_ekpo
23
+ * @Author: jeecg-boot
24
+ * @Date:   2024-09-22
25
+ * @Version: V1.0
26
+ */
27
+@Data
28
+@TableName("app_scene_cost_sap_ekpo")
29
+@Accessors(chain = true)
30
+@EqualsAndHashCode(callSuper = false)
31
+@ApiModel(value="app_scene_cost_sap_ekpo对象", description="app_scene_cost_sap_ekpo")
32
+public class AppSceneCostSapEkpo implements Serializable {
33
+    private static final long serialVersionUID = 1L;
34
+
35
+	/**ebeln*/
36
+	@Excel(name = "ebeln", width = 15)
37
+    @ApiModelProperty(value = "ebeln")
38
+    private String ebeln;
39
+	/**ekorg*/
40
+	@Excel(name = "ekorg", width = 15)
41
+    @ApiModelProperty(value = "ekorg")
42
+    private String ekorg;
43
+	/**bukrs*/
44
+	@Excel(name = "bukrs", width = 15)
45
+    @ApiModelProperty(value = "bukrs")
46
+    private String bukrs;
47
+	/**ebelp*/
48
+	@Excel(name = "ebelp", width = 15)
49
+    @ApiModelProperty(value = "ebelp")
50
+    private String ebelp;
51
+	/**matnr*/
52
+	@Excel(name = "matnr", width = 15)
53
+    @ApiModelProperty(value = "matnr")
54
+    private String matnr;
55
+	/**werks*/
56
+	@Excel(name = "werks", width = 15)
57
+    @ApiModelProperty(value = "werks")
58
+    private String werks;
59
+	/**waers*/
60
+	@Excel(name = "waers", width = 15)
61
+    @ApiModelProperty(value = "waers")
62
+    private String waers;
63
+	/**netpr*/
64
+	@Excel(name = "netpr", width = 15)
65
+    @ApiModelProperty(value = "netpr")
66
+    private BigDecimal netpr;
67
+	/**kdatb*/
68
+	@Excel(name = "kdatb", width = 15)
69
+    @ApiModelProperty(value = "kdatb")
70
+    private String kdatb;
71
+	/**kdate*/
72
+	@Excel(name = "kdate", width = 15)
73
+    @ApiModelProperty(value = "kdate")
74
+    private String kdate;
75
+	/**bedat*/
76
+	@Excel(name = "bedat", width = 15)
77
+    @ApiModelProperty(value = "bedat")
78
+    private String bedat;
79
+	/**peinh*/
80
+	@Excel(name = "peinh", width = 15)
81
+    @ApiModelProperty(value = "peinh")
82
+    private BigDecimal peinh;
83
+	/**pstyp*/
84
+	@Excel(name = "pstyp", width = 15)
85
+    @ApiModelProperty(value = "pstyp")
86
+    private String pstyp;
87
+	/**relst*/
88
+	@Excel(name = "relst", width = 15)
89
+    @ApiModelProperty(value = "relst")
90
+    private String relst;
91
+	/**loekz*/
92
+	@Excel(name = "loekz", width = 15)
93
+    @ApiModelProperty(value = "loekz")
94
+    private String loekz;
95
+}

+ 67
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostSapHourRate.java Просмотреть файл

@@ -0,0 +1,67 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import java.io.Serializable;
4
+import java.io.UnsupportedEncodingException;
5
+import java.util.Date;
6
+import java.math.BigDecimal;
7
+import com.baomidou.mybatisplus.annotation.IdType;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import com.baomidou.mybatisplus.annotation.TableName;
10
+import com.baomidou.mybatisplus.annotation.TableLogic;
11
+import lombok.Data;
12
+import com.fasterxml.jackson.annotation.JsonFormat;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+import org.jeecgframework.poi.excel.annotation.Excel;
15
+import org.jeecg.common.aspect.annotation.Dict;
16
+import io.swagger.annotations.ApiModel;
17
+import io.swagger.annotations.ApiModelProperty;
18
+import lombok.EqualsAndHashCode;
19
+import lombok.experimental.Accessors;
20
+
21
+/**
22
+ * @Description: app_scene_cost_sap_hour_rate
23
+ * @Author: jeecg-boot
24
+ * @Date:   2024-10-15
25
+ * @Version: V1.0
26
+ */
27
+@Data
28
+@TableName("app_scene_cost_sap_hour_rate")
29
+@Accessors(chain = true)
30
+@EqualsAndHashCode(callSuper = false)
31
+@ApiModel(value="app_scene_cost_sap_hour_rate对象", description="app_scene_cost_sap_hour_rate")
32
+public class AppSceneCostSapHourRate implements Serializable {
33
+    private static final long serialVersionUID = 1L;
34
+
35
+	/**主键*/
36
+	@TableId(type = IdType.ASSIGN_ID)
37
+    @ApiModelProperty(value = "主键")
38
+    private Integer id;
39
+	/**年月*/
40
+	@Excel(name = "年月", width = 15)
41
+    @ApiModelProperty(value = "年月")
42
+    private String ym;
43
+	/**成本中心代码*/
44
+	@Excel(name = "成本中心代码", width = 15)
45
+    @ApiModelProperty(value = "成本中心代码")
46
+    private String centerCode;
47
+	/**人工小时费率*/
48
+	@Excel(name = "人工小时费率", width = 15)
49
+    @ApiModelProperty(value = "人工小时费率")
50
+    private BigDecimal rgfv;
51
+	/**设备小时费率*/
52
+	@Excel(name = "设备小时费率", width = 15)
53
+    @ApiModelProperty(value = "设备小时费率")
54
+    private BigDecimal sbfv;
55
+	/**燃动小时费率*/
56
+	@Excel(name = "燃动小时费率", width = 15)
57
+    @ApiModelProperty(value = "燃动小时费率")
58
+    private BigDecimal rdfv;
59
+	/**辅料小时费率*/
60
+	@Excel(name = "辅料小时费率", width = 15)
61
+    @ApiModelProperty(value = "辅料小时费率")
62
+    private BigDecimal flfv;
63
+	/**其他小时费率*/
64
+	@Excel(name = "其他小时费率", width = 15)
65
+    @ApiModelProperty(value = "其他小时费率")
66
+    private BigDecimal qtfv;
67
+}

+ 311
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostSapZcorc.java Просмотреть файл

@@ -0,0 +1,311 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import java.io.Serializable;
4
+import java.io.UnsupportedEncodingException;
5
+import java.util.Date;
6
+import java.math.BigDecimal;
7
+import com.baomidou.mybatisplus.annotation.IdType;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import com.baomidou.mybatisplus.annotation.TableName;
10
+import com.baomidou.mybatisplus.annotation.TableLogic;
11
+import lombok.Data;
12
+import com.fasterxml.jackson.annotation.JsonFormat;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+import org.jeecgframework.poi.excel.annotation.Excel;
15
+import org.jeecg.common.aspect.annotation.Dict;
16
+import io.swagger.annotations.ApiModel;
17
+import io.swagger.annotations.ApiModelProperty;
18
+import lombok.EqualsAndHashCode;
19
+import lombok.experimental.Accessors;
20
+
21
+/**
22
+ * @Description: app_scene_cost_sap_zcorc
23
+ * @Author: jeecg-boot
24
+ * @Date:   2024-10-15
25
+ * @Version: V1.0
26
+ */
27
+@Data
28
+@TableName("app_scene_cost_sap_zcorc")
29
+@Accessors(chain = true)
30
+@EqualsAndHashCode(callSuper = false)
31
+@ApiModel(value="app_scene_cost_sap_zcorc对象", description="app_scene_cost_sap_zcorc")
32
+public class AppSceneCostSapZcorc implements Serializable {
33
+    private static final long serialVersionUID = 1L;
34
+
35
+	/**ymonth*/
36
+	@Excel(name = "会计期间", width = 15)
37
+    @ApiModelProperty(value = "ymonth")
38
+    private String ymonth;
39
+	/**layer*/
40
+	@Excel(name = "层级", width = 15)
41
+    @ApiModelProperty(value = "layer")
42
+    private String layer;
43
+	/**rlayer*/
44
+	@Excel(name = "参考节点", width = 15)
45
+    @ApiModelProperty(value = "rlayer")
46
+    private String rlayer;
47
+	/**werks*/
48
+	@Excel(name = "工厂", width = 15)
49
+    @ApiModelProperty(value = "werks")
50
+    private String werks;
51
+	/**matnr*/
52
+	@Excel(name = "物料", width = 15)
53
+    @ApiModelProperty(value = "matnr")
54
+    private String matnr;
55
+	/**psPspPnr*/
56
+	//@Excel(name = "psPspPnr", width = 15)
57
+    @ApiModelProperty(value = "psPspPnr")
58
+    private String psPspPnr;
59
+	/**aufnr*/
60
+	@Excel(name = "订单", width = 15)
61
+    @ApiModelProperty(value = "aufnr")
62
+    private String aufnr;
63
+	/**ppsmng*/
64
+	@Excel(name = "订单数量", width = 15)
65
+    @ApiModelProperty(value = "ppsmng")
66
+    private BigDecimal ppsmng;
67
+	/**rpsmng*/
68
+	//@Excel(name = "rpsmng", width = 15)
69
+    @ApiModelProperty(value = "rpsmng")
70
+    private BigDecimal rpsmng;
71
+	/**ebeln*/
72
+	@Excel(name = "采购凭证", width = 15)
73
+    @ApiModelProperty(value = "ebeln")
74
+    private String ebeln;
75
+	/**ebelp*/
76
+	@Excel(name = "项目", width = 15)
77
+    @ApiModelProperty(value = "ebelp")
78
+    private String ebelp;
79
+	/**psmng*/
80
+	//@Excel(name = "psmng", width = 15)
81
+    @ApiModelProperty(value = "psmng")
82
+    private BigDecimal psmng;
83
+	/**idnrk*/
84
+	@Excel(name = "组件", width = 15)
85
+    @ApiModelProperty(value = "idnrk")
86
+    private String idnrk;
87
+	/**kmonth*/
88
+	@Excel(name = "月", width = 15)
89
+    @ApiModelProperty(value = "kmonth")
90
+    private String kmonth;
91
+	/**menge*/
92
+	@Excel(name = "数量", width = 15)
93
+    @ApiModelProperty(value = "menge")
94
+    private BigDecimal menge;
95
+	/**unmng*/
96
+	@Excel(name = "单位数量", width = 15)
97
+    @ApiModelProperty(value = "unmng")
98
+    private BigDecimal unmng;
99
+	/**kst001*/
100
+	@Excel(name = "材料", width = 15)
101
+    @ApiModelProperty(value = "kst001")
102
+    private BigDecimal kst001;
103
+	/**kst003*/
104
+	@Excel(name = "人工费用", width = 15)
105
+    @ApiModelProperty(value = "kst003")
106
+    private BigDecimal kst003;
107
+	/**kst005*/
108
+	@Excel(name = "制造费用", width = 15)
109
+    @ApiModelProperty(value = "kst005")
110
+    private BigDecimal kst005;
111
+	/**kstsum*/
112
+	@Excel(name = "单位实际成本", width = 15)
113
+    @ApiModelProperty(value = "kstsum")
114
+    private BigDecimal kstsum;
115
+	/**RKST001+ RKST003*/
116
+	@Excel(name = "实际材料", width = 15)
117
+    @ApiModelProperty(value = "实际材料")
118
+    private BigDecimal rkst000;
119
+	/**rkst100*/
120
+	@Excel(name = "rkst100", width = 15)
121
+    @ApiModelProperty(value = "rkst100")
122
+    private BigDecimal rkst100;
123
+	/**rkst001*/
124
+	@Excel(name = "rkst001", width = 15)
125
+    @ApiModelProperty(value = "rkst001")
126
+    private BigDecimal rkst001;
127
+	/**rkst003*/
128
+	@Excel(name = "rkst003", width = 15)
129
+    @ApiModelProperty(value = "rkst003")
130
+    private BigDecimal rkst003;
131
+	/**rkstlabor*/
132
+	@Excel(name = "rkstlabor", width = 15)
133
+    @ApiModelProperty(value = "rkstlabor")
134
+    private BigDecimal rkstlabor;
135
+	/**rkst0051*/
136
+	@Excel(name = "rkst0051", width = 15)
137
+    @ApiModelProperty(value = "rkst0051")
138
+    private BigDecimal rkst0051;
139
+	/**rkst301*/
140
+	@Excel(name = "rkst301", width = 15)
141
+    @ApiModelProperty(value = "rkst301")
142
+    private BigDecimal rkst301;
143
+	/**rkst302*/
144
+	@Excel(name = "rkst302", width = 15)
145
+    @ApiModelProperty(value = "rkst302")
146
+    private BigDecimal rkst302;
147
+	/**rkst303*/
148
+	@Excel(name = "rkst303", width = 15)
149
+    @ApiModelProperty(value = "rkst303")
150
+    private BigDecimal rkst303;
151
+	/**rkst304*/
152
+	@Excel(name = "rkst304", width = 15)
153
+    @ApiModelProperty(value = "rkst304")
154
+    private BigDecimal rkst304;
155
+	/**bfmenge*/
156
+	@Excel(name = "bfmenge", width = 15)
157
+    @ApiModelProperty(value = "bfmenge")
158
+    private BigDecimal bfmenge;
159
+	/**rkstwft*/
160
+	@Excel(name = "rkstwft", width = 15)
161
+    @ApiModelProperty(value = "rkstwft")
162
+    private BigDecimal rkstwft;
163
+	/**rkstwft001*/
164
+	@Excel(name = "rkstwft001", width = 15)
165
+    @ApiModelProperty(value = "rkstwft001")
166
+    private BigDecimal rkstwft001;
167
+	/**rkstwft003*/
168
+	@Excel(name = "rkstwft003", width = 15)
169
+    @ApiModelProperty(value = "rkstwft003")
170
+    private BigDecimal rkstwft003;
171
+	/**rkstwft0051*/
172
+	@Excel(name = "rkstwft0051", width = 15)
173
+    @ApiModelProperty(value = "rkstwft0051")
174
+    private BigDecimal rkstwft0051;
175
+	/**rkstwfp*/
176
+	@Excel(name = "rkstwfp", width = 15)
177
+    @ApiModelProperty(value = "rkstwfp")
178
+    private BigDecimal rkstwfp;
179
+	/**rkstzfi032*/
180
+	@Excel(name = "rkstzfi032", width = 15)
181
+    @ApiModelProperty(value = "rkstzfi032")
182
+    private BigDecimal rkstzfi032;
183
+	/**hrkft*/
184
+	@Excel(name = "hrkft", width = 15)
185
+    @ApiModelProperty(value = "hrkft")
186
+    private String hrkft;
187
+	/**rkst101*/
188
+	@Excel(name = "rkst101", width = 15)
189
+    @ApiModelProperty(value = "rkst101")
190
+    private BigDecimal rkst101;
191
+	/**posid*/
192
+	//@Excel(name = "posid", width = 15)
193
+    @ApiModelProperty(value = "posid")
194
+    private String posid;
195
+	/**version*/
196
+	//@Excel(name = "version", width = 15)
197
+    @ApiModelProperty(value = "version")
198
+    private String version;
199
+	/**auart*/
200
+	//@Excel(name = "auart", width = 15)
201
+    @ApiModelProperty(value = "auart")
202
+    private String auart;
203
+	/**maktx*/
204
+	@Excel(name = "物料描述", width = 15)
205
+    @ApiModelProperty(value = "maktx")
206
+    private String maktx;
207
+	/**ckm3*/
208
+	//@Excel(name = "ckm3", width = 15)
209
+    @ApiModelProperty(value = "ckm3")
210
+    private BigDecimal ckm3;
211
+	/**id*/
212
+	@TableId(type = IdType.AUTO)
213
+    @ApiModelProperty(value = "id")
214
+    private Integer id;
215
+	/**player*/
216
+	@Excel(name = "父层级", width = 15)
217
+    @ApiModelProperty(value = "player")
218
+    private String player;
219
+	/**level*/
220
+	//@Excel(name = "level", width = 15)
221
+    @ApiModelProperty(value = "level")
222
+    private Integer level;
223
+    /**ckm3*/
224
+    //@Excel(name = "aufnrtotal", width = 15)
225
+    @ApiModelProperty(value = "aufnrtotal")
226
+    private BigDecimal aufnrtotal;
227
+    /**ckm3*/
228
+    @Excel(name = "订单数量", width = 15)
229
+    @ApiModelProperty(value = "aufnrmng")
230
+    private BigDecimal aufnrmng;
231
+
232
+    @Excel(name = "领用数量", width = 15)
233
+    @ApiModelProperty(value = "aufnrmenge")
234
+    private BigDecimal aufnrmenge;
235
+
236
+    @Excel(name = "领用数量", width = 15)
237
+    @ApiModelProperty(value = "aufnrnum")
238
+    private BigDecimal aufnrnum;
239
+    /**ckm3*/
240
+    @Excel(name = "加权平均数量", width = 15)
241
+    @ApiModelProperty(value = "matnrnum")
242
+    private BigDecimal matnrnum;
243
+    /**ckm3*/
244
+    @Excel(name = "基于成品的结构用量", width = 15)
245
+    @ApiModelProperty(value = "pnum")
246
+    private BigDecimal pnum;
247
+
248
+    @Excel(name = "加权平均用量", width = 15)
249
+    @ApiModelProperty(value = "avgnum")
250
+    private BigDecimal avgnum;
251
+
252
+    //@Excel(name = "备注", width = 15)
253
+    @ApiModelProperty(value = "totalnum")
254
+    private BigDecimal totalnum;
255
+
256
+    @Excel(name = "领用成本", width = 15,type = 4,numFormat = "0.0000")
257
+    @ApiModelProperty(value = "avgprice")
258
+    private BigDecimal avgprice;
259
+
260
+    @Excel(name = "加权平均单位成本", width = 15,type = 4,numFormat = "0.0000")
261
+    @ApiModelProperty(value = "totalprice")
262
+    private BigDecimal totalprice;
263
+
264
+    @Excel(name = "人工工时", width = 15)
265
+    @ApiModelProperty(value = "rggs")
266
+    private BigDecimal rggs;
267
+
268
+    @Excel(name = "加权平均单位成本", width = 15)
269
+    @ApiModelProperty(value = "rgfv")
270
+    private BigDecimal rgfv;
271
+
272
+    @Excel(name = "设备工时", width = 15)
273
+    @ApiModelProperty(value = "sbgs")
274
+    private BigDecimal sbgs;
275
+
276
+    @Excel(name = "设备费率", width = 15)
277
+    @ApiModelProperty(value = "sbfv")
278
+    private BigDecimal sbfv;
279
+
280
+    @Excel(name = "辅料工时", width = 15)
281
+    @ApiModelProperty(value = "flgs")
282
+    private BigDecimal flgs;
283
+
284
+    @Excel(name = "辅料费率", width = 15)
285
+    @ApiModelProperty(value = "flfv")
286
+    private BigDecimal flfv;
287
+
288
+    @Excel(name = "燃动工时", width = 15)
289
+    @ApiModelProperty(value = "rdgs")
290
+    private BigDecimal rdgs;
291
+
292
+    @Excel(name = "燃动费率", width = 15)
293
+    @ApiModelProperty(value = "rdfv")
294
+    private BigDecimal rdfv;
295
+
296
+    @Excel(name = "其他工时", width = 15)
297
+    @ApiModelProperty(value = "qtgs")
298
+    private BigDecimal qtgs;
299
+
300
+    @Excel(name = "其他费率", width = 15)
301
+    @ApiModelProperty(value = "qtfv")
302
+    private BigDecimal qtfv;
303
+
304
+
305
+
306
+    /**ckm3*/
307
+    @Excel(name = "备注", width = 15)
308
+    @ApiModelProperty(value = "content")
309
+    private String content;
310
+
311
+}

+ 307
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostSapZtmmx004.java Просмотреть файл

@@ -0,0 +1,307 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import java.io.Serializable;
4
+import java.io.UnsupportedEncodingException;
5
+import java.util.Date;
6
+import java.math.BigDecimal;
7
+import com.baomidou.mybatisplus.annotation.IdType;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import com.baomidou.mybatisplus.annotation.TableName;
10
+import com.baomidou.mybatisplus.annotation.TableLogic;
11
+import lombok.Data;
12
+import com.fasterxml.jackson.annotation.JsonFormat;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+import org.jeecgframework.poi.excel.annotation.Excel;
15
+import org.jeecg.common.aspect.annotation.Dict;
16
+import io.swagger.annotations.ApiModel;
17
+import io.swagger.annotations.ApiModelProperty;
18
+import lombok.EqualsAndHashCode;
19
+import lombok.experimental.Accessors;
20
+
21
+/**
22
+ * @Description: app_scene_cost_sap_ztmmx004
23
+ * @Author: jeecg-boot
24
+ * @Date:   2024-10-17
25
+ * @Version: V1.0
26
+ */
27
+@Data
28
+@TableName("app_scene_cost_sap_ztmmx004")
29
+@Accessors(chain = true)
30
+@EqualsAndHashCode(callSuper = false)
31
+@ApiModel(value="app_scene_cost_sap_ztmmx004对象", description="app_scene_cost_sap_ztmmx004")
32
+public class AppSceneCostSapZtmmx004 implements Serializable {
33
+    private static final long serialVersionUID = 1L;
34
+
35
+	/**mandt*/
36
+	@Excel(name = "mandt", width = 15)
37
+    @ApiModelProperty(value = "mandt")
38
+    private String mandt;
39
+	/**zjkyld*/
40
+	@Excel(name = "zjkyld", width = 15)
41
+    @ApiModelProperty(value = "zjkyld")
42
+    private String zjkyld;
43
+	/**zjkhxm*/
44
+	@Excel(name = "zjkhxm", width = 15)
45
+    @ApiModelProperty(value = "zjkhxm")
46
+    private String zjkhxm;
47
+	/**zyllx*/
48
+	@Excel(name = "zyllx", width = 15)
49
+    @ApiModelProperty(value = "zyllx")
50
+    private String zyllx;
51
+	/**rsnum*/
52
+	@Excel(name = "rsnum", width = 15)
53
+    @ApiModelProperty(value = "rsnum")
54
+    private String rsnum;
55
+	/**rspos*/
56
+	@Excel(name = "rspos", width = 15)
57
+    @ApiModelProperty(value = "rspos")
58
+    private String rspos;
59
+	/**matnr*/
60
+	@Excel(name = "matnr", width = 15)
61
+    @ApiModelProperty(value = "matnr")
62
+    private String matnr;
63
+	/**werks*/
64
+	@Excel(name = "werks", width = 15)
65
+    @ApiModelProperty(value = "werks")
66
+    private String werks;
67
+	/**lgort*/
68
+	@Excel(name = "lgort", width = 15)
69
+    @ApiModelProperty(value = "lgort")
70
+    private String lgort;
71
+	/**charg*/
72
+	@Excel(name = "charg", width = 15)
73
+    @ApiModelProperty(value = "charg")
74
+    private String charg;
75
+	/**meins*/
76
+	@Excel(name = "meins", width = 15)
77
+    @ApiModelProperty(value = "meins")
78
+    private String meins;
79
+	/**bdmng*/
80
+	@Excel(name = "bdmng", width = 15)
81
+    @ApiModelProperty(value = "bdmng")
82
+    private BigDecimal bdmng;
83
+	/**enmng*/
84
+	@Excel(name = "enmng", width = 15)
85
+    @ApiModelProperty(value = "enmng")
86
+    private BigDecimal enmng;
87
+	/**rsdat*/
88
+	@Excel(name = "rsdat", width = 15)
89
+    @ApiModelProperty(value = "rsdat")
90
+    private String rsdat;
91
+	/**bdter*/
92
+	@Excel(name = "bdter", width = 15)
93
+    @ApiModelProperty(value = "bdter")
94
+    private String bdter;
95
+	/**bwart*/
96
+	@Excel(name = "bwart", width = 15)
97
+    @ApiModelProperty(value = "bwart")
98
+    private String bwart;
99
+	/**sobkz*/
100
+	@Excel(name = "sobkz", width = 15)
101
+    @ApiModelProperty(value = "sobkz")
102
+    private String sobkz;
103
+	/**ebeln*/
104
+	@Excel(name = "ebeln", width = 15)
105
+    @ApiModelProperty(value = "ebeln")
106
+    private String ebeln;
107
+	/**ebelp*/
108
+	@Excel(name = "ebelp", width = 15)
109
+    @ApiModelProperty(value = "ebelp")
110
+    private String ebelp;
111
+	/**aufnr*/
112
+	@Excel(name = "aufnr", width = 15)
113
+    @ApiModelProperty(value = "aufnr")
114
+    private String aufnr;
115
+	/**refPosnr*/
116
+	@Excel(name = "refPosnr", width = 15)
117
+    @ApiModelProperty(value = "refPosnr")
118
+    private String refPosnr;
119
+	/**refRsnum*/
120
+	@Excel(name = "refRsnum", width = 15)
121
+    @ApiModelProperty(value = "refRsnum")
122
+    private String refRsnum;
123
+	/**refRspos*/
124
+	@Excel(name = "refRspos", width = 15)
125
+    @ApiModelProperty(value = "refRspos")
126
+    private String refRspos;
127
+	/**zzlwt*/
128
+	@Excel(name = "zzlwt", width = 15)
129
+    @ApiModelProperty(value = "zzlwt")
130
+    private String zzlwt;
131
+	/**zcfdh*/
132
+	@Excel(name = "zcfdh", width = 15)
133
+    @ApiModelProperty(value = "zcfdh")
134
+    private String zcfdh;
135
+	/**zcfyy*/
136
+	@Excel(name = "zcfyy", width = 15)
137
+    @ApiModelProperty(value = "zcfyy")
138
+    private String zcfyy;
139
+	/**kostl*/
140
+	@Excel(name = "kostl", width = 15)
141
+    @ApiModelProperty(value = "kostl")
142
+    private String kostl;
143
+	/**umwrk*/
144
+	@Excel(name = "umwrk", width = 15)
145
+    @ApiModelProperty(value = "umwrk")
146
+    private String umwrk;
147
+	/**umlgo*/
148
+	@Excel(name = "umlgo", width = 15)
149
+    @ApiModelProperty(value = "umlgo")
150
+    private String umlgo;
151
+	/**ummat*/
152
+	@Excel(name = "ummat", width = 15)
153
+    @ApiModelProperty(value = "ummat")
154
+    private String ummat;
155
+	/**umcha*/
156
+	@Excel(name = "umcha", width = 15)
157
+    @ApiModelProperty(value = "umcha")
158
+    private String umcha;
159
+	/**lifnr*/
160
+	@Excel(name = "lifnr", width = 15)
161
+    @ApiModelProperty(value = "lifnr")
162
+    private String lifnr;
163
+	/**kunnr*/
164
+	@Excel(name = "kunnr", width = 15)
165
+    @ApiModelProperty(value = "kunnr")
166
+    private String kunnr;
167
+	/**ernam*/
168
+	@Excel(name = "ernam", width = 15)
169
+    @ApiModelProperty(value = "ernam")
170
+    private String ernam;
171
+	/**erdat*/
172
+	@Excel(name = "erdat", width = 15)
173
+    @ApiModelProperty(value = "erdat")
174
+    private String erdat;
175
+	/**erzet*/
176
+	@Excel(name = "erzet", width = 15)
177
+    @ApiModelProperty(value = "erzet")
178
+    private String erzet;
179
+	/**aenam*/
180
+	@Excel(name = "aenam", width = 15)
181
+    @ApiModelProperty(value = "aenam")
182
+    private String aenam;
183
+	/**aedat*/
184
+	@Excel(name = "aedat", width = 15)
185
+    @ApiModelProperty(value = "aedat")
186
+    private String aedat;
187
+	/**aezet*/
188
+	@Excel(name = "aezet", width = 15)
189
+    @ApiModelProperty(value = "aezet")
190
+    private String aezet;
191
+	/**zconf*/
192
+	@Excel(name = "zconf", width = 15)
193
+    @ApiModelProperty(value = "zconf")
194
+    private String zconf;
195
+	/**qrnam*/
196
+	@Excel(name = "qrnam", width = 15)
197
+    @ApiModelProperty(value = "qrnam")
198
+    private String qrnam;
199
+	/**qrdat*/
200
+	@Excel(name = "qrdat", width = 15)
201
+    @ApiModelProperty(value = "qrdat")
202
+    private String qrdat;
203
+	/**qrzet*/
204
+	@Excel(name = "qrzet", width = 15)
205
+    @ApiModelProperty(value = "qrzet")
206
+    private String qrzet;
207
+	/**zsfsp*/
208
+	@Excel(name = "zsfsp", width = 15)
209
+    @ApiModelProperty(value = "zsfsp")
210
+    private String zsfsp;
211
+	/**zspzt*/
212
+	@Excel(name = "zspzt", width = 15)
213
+    @ApiModelProperty(value = "zspzt")
214
+    private String zspzt;
215
+	/**spnam*/
216
+	@Excel(name = "spnam", width = 15)
217
+    @ApiModelProperty(value = "spnam")
218
+    private String spnam;
219
+	/**spdat*/
220
+	@Excel(name = "spdat", width = 15)
221
+    @ApiModelProperty(value = "spdat")
222
+    private String spdat;
223
+	/**spzet*/
224
+	@Excel(name = "spzet", width = 15)
225
+    @ApiModelProperty(value = "spzet")
226
+    private String spzet;
227
+	/**zsfts*/
228
+	@Excel(name = "zsfts", width = 15)
229
+    @ApiModelProperty(value = "zsfts")
230
+    private String zsfts;
231
+	/**ztszt*/
232
+	@Excel(name = "ztszt", width = 15)
233
+    @ApiModelProperty(value = "ztszt")
234
+    private String ztszt;
235
+	/**zzt*/
236
+	@Excel(name = "zzt", width = 15)
237
+    @ApiModelProperty(value = "zzt")
238
+    private String zzt;
239
+	/**zjjcd*/
240
+	@Excel(name = "zjjcd", width = 15)
241
+    @ApiModelProperty(value = "zjjcd")
242
+    private String zjjcd;
243
+	/**dele*/
244
+	@Excel(name = "dele", width = 15)
245
+    @ApiModelProperty(value = "dele")
246
+    private String dele;
247
+	/**zcfsl*/
248
+	@Excel(name = "zcfsl", width = 15)
249
+    @ApiModelProperty(value = "zcfsl")
250
+    private BigDecimal zcfsl;
251
+	/**z2step*/
252
+	@Excel(name = "z2step", width = 15)
253
+    @ApiModelProperty(value = "z2step")
254
+    private String z2step;
255
+	/**zretlf*/
256
+	@Excel(name = "zretlf", width = 15)
257
+    @ApiModelProperty(value = "zretlf")
258
+    private String zretlf;
259
+	/**bdmngO*/
260
+	@Excel(name = "bdmngO", width = 15)
261
+    @ApiModelProperty(value = "bdmngO")
262
+    private BigDecimal bdmngO;
263
+	/**msgty*/
264
+	@Excel(name = "msgty", width = 15)
265
+    @ApiModelProperty(value = "msgty")
266
+    private String msgty;
267
+	/**msg*/
268
+	@Excel(name = "msg", width = 15)
269
+    @ApiModelProperty(value = "msg")
270
+    private String msg;
271
+	/**zllr*/
272
+	@Excel(name = "zllr", width = 15)
273
+    @ApiModelProperty(value = "zllr")
274
+    private String zllr;
275
+	/**zllyy*/
276
+	@Excel(name = "zllyy", width = 15)
277
+    @ApiModelProperty(value = "zllyy")
278
+    private String zllyy;
279
+	/**refRsart*/
280
+	@Excel(name = "refRsart", width = 15)
281
+    @ApiModelProperty(value = "refRsart")
282
+    private String refRsart;
283
+	/**txt40*/
284
+	@Excel(name = "txt40", width = 15)
285
+    @ApiModelProperty(value = "txt40")
286
+    private String txt40;
287
+	/**ktext*/
288
+	@Excel(name = "ktext", width = 15)
289
+    @ApiModelProperty(value = "ktext")
290
+    private String ktext;
291
+	/**nodeal*/
292
+	@Excel(name = "nodeal", width = 15)
293
+    @ApiModelProperty(value = "nodeal")
294
+    private String nodeal;
295
+	/**zyylbA09*/
296
+	@Excel(name = "zyylbA09", width = 15)
297
+    @ApiModelProperty(value = "zyylbA09")
298
+    private String zyylbA09;
299
+	/**zyylbA10*/
300
+	@Excel(name = "zyylbA10", width = 15)
301
+    @ApiModelProperty(value = "zyylbA10")
302
+    private String zyylbA10;
303
+	/**zzrbm*/
304
+	@Excel(name = "zzrbm", width = 15)
305
+    @ApiModelProperty(value = "zzrbm")
306
+    private String zzrbm;
307
+}

+ 89
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostStandardBom.java Просмотреть файл

@@ -0,0 +1,89 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import java.io.Serializable;
4
+import java.io.UnsupportedEncodingException;
5
+import java.util.Date;
6
+import java.math.BigDecimal;
7
+import com.baomidou.mybatisplus.annotation.IdType;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import com.baomidou.mybatisplus.annotation.TableName;
10
+import com.baomidou.mybatisplus.annotation.TableLogic;
11
+import lombok.Builder;
12
+import lombok.Data;
13
+import com.fasterxml.jackson.annotation.JsonFormat;
14
+import org.springframework.format.annotation.DateTimeFormat;
15
+import org.jeecgframework.poi.excel.annotation.Excel;
16
+import org.jeecg.common.aspect.annotation.Dict;
17
+import io.swagger.annotations.ApiModel;
18
+import io.swagger.annotations.ApiModelProperty;
19
+import lombok.EqualsAndHashCode;
20
+import lombok.experimental.Accessors;
21
+
22
+/**
23
+ * @Description: app_scene_cost_standard_bom
24
+ * @Author: jeecg-boot
25
+ * @Date:   2024-10-15
26
+ * @Version: V1.0
27
+ */
28
+@Data
29
+@Builder
30
+@TableName("app_scene_cost_standard_bom")
31
+@Accessors(chain = true)
32
+@EqualsAndHashCode(callSuper = false)
33
+@ApiModel(value="app_scene_cost_standard_bom对象", description="app_scene_cost_standard_bom")
34
+public class AppSceneCostStandardBom implements Serializable {
35
+    private static final long serialVersionUID = 1L;
36
+
37
+	/**matnr*/
38
+	@Excel(name = "matnr", width = 15)
39
+    @ApiModelProperty(value = "matnr")
40
+    private String matnr;
41
+	/**versionNumber*/
42
+	@Excel(name = "versionNumber", width = 15)
43
+    @ApiModelProperty(value = "versionNumber")
44
+    private String versionNumber;
45
+	/**posnr*/
46
+	@Excel(name = "posnr", width = 15)
47
+    @ApiModelProperty(value = "posnr")
48
+    private String posnr;
49
+	/**werks*/
50
+	@Excel(name = "werks", width = 15)
51
+    @ApiModelProperty(value = "werks")
52
+    private String werks;
53
+	/**bmeng*/
54
+	@Excel(name = "bmeng", width = 15)
55
+    @ApiModelProperty(value = "bmeng")
56
+    private BigDecimal bmeng;
57
+	/**idnrk*/
58
+	@Excel(name = "idnrk", width = 15)
59
+    @ApiModelProperty(value = "idnrk")
60
+    private String idnrk;
61
+	/**menge*/
62
+	@Excel(name = "menge", width = 15)
63
+    @ApiModelProperty(value = "menge")
64
+    private BigDecimal menge;
65
+	/**oldMaterialGroup*/
66
+	@Excel(name = "oldMaterialGroup", width = 15)
67
+    @ApiModelProperty(value = "oldMaterialGroup")
68
+    private String oldMaterialGroup;
69
+	/**manufacturingType*/
70
+	@Excel(name = "manufacturingType", width = 15)
71
+    @ApiModelProperty(value = "manufacturingType")
72
+    private String manufacturingType;
73
+	/**sobsl*/
74
+	@Excel(name = "sobsl", width = 15)
75
+    @ApiModelProperty(value = "sobsl")
76
+    private String sobsl;
77
+	/**batch*/
78
+	@Excel(name = "batch", width = 15)
79
+    @ApiModelProperty(value = "batch")
80
+    private BigDecimal batch;
81
+	/**productName*/
82
+	@Excel(name = "productName", width = 15)
83
+    @ApiModelProperty(value = "productName")
84
+    private String productName;
85
+	/**materialType*/
86
+	@Excel(name = "materialType", width = 15)
87
+    @ApiModelProperty(value = "materialType")
88
+    private String materialType;
89
+}

+ 117
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostStandardProductprocess.java Просмотреть файл

@@ -0,0 +1,117 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import java.io.Serializable;
4
+import java.io.UnsupportedEncodingException;
5
+import java.util.Date;
6
+import java.math.BigDecimal;
7
+import com.baomidou.mybatisplus.annotation.IdType;
8
+import com.baomidou.mybatisplus.annotation.TableId;
9
+import com.baomidou.mybatisplus.annotation.TableName;
10
+import com.baomidou.mybatisplus.annotation.TableLogic;
11
+import lombok.Builder;
12
+import lombok.Data;
13
+import com.fasterxml.jackson.annotation.JsonFormat;
14
+import org.springframework.format.annotation.DateTimeFormat;
15
+import org.jeecgframework.poi.excel.annotation.Excel;
16
+import org.jeecg.common.aspect.annotation.Dict;
17
+import io.swagger.annotations.ApiModel;
18
+import io.swagger.annotations.ApiModelProperty;
19
+import lombok.EqualsAndHashCode;
20
+import lombok.experimental.Accessors;
21
+
22
+/**
23
+ * @Description: app_scene_cost_standard_productprocess
24
+ * @Author: jeecg-boot
25
+ * @Date:   2024-10-15
26
+ * @Version: V1.0
27
+ */
28
+@Data
29
+@Builder
30
+@TableName("app_scene_cost_standard_productprocess")
31
+@Accessors(chain = true)
32
+@EqualsAndHashCode(callSuper = false)
33
+@ApiModel(value="app_scene_cost_standard_productprocess对象", description="app_scene_cost_standard_productprocess")
34
+public class AppSceneCostStandardProductprocess implements Serializable {
35
+    private static final long serialVersionUID = 1L;
36
+
37
+	/**id*/
38
+	@TableId(type = IdType.AUTO)
39
+    @ApiModelProperty(value = "id")
40
+    private Integer id;
41
+	/**factory*/
42
+	@Excel(name = "factory", width = 15)
43
+    @ApiModelProperty(value = "factory")
44
+    private String factory;
45
+	/**mainPartNumber*/
46
+	@Excel(name = "mainPartNumber", width = 15)
47
+    @ApiModelProperty(value = "mainPartNumber")
48
+    private String mainPartNumber;
49
+	/**processRouteNumber*/
50
+	@Excel(name = "processRouteNumber", width = 15)
51
+    @ApiModelProperty(value = "processRouteNumber")
52
+    private String processRouteNumber;
53
+	/**serialNumber*/
54
+	@Excel(name = "serialNumber", width = 15)
55
+    @ApiModelProperty(value = "serialNumber")
56
+    private String serialNumber;
57
+	/**processName*/
58
+	@Excel(name = "processName", width = 15)
59
+    @ApiModelProperty(value = "processName")
60
+    private String processName;
61
+	/**costCenterCode*/
62
+	@Excel(name = "costCenterCode", width = 15)
63
+    @ApiModelProperty(value = "costCenterCode")
64
+    private String costCenterCode;
65
+	/**prepareHour*/
66
+	@Excel(name = "prepareHour", width = 15)
67
+    @ApiModelProperty(value = "prepareHour")
68
+    private BigDecimal prepareHour;
69
+	/**laborHour*/
70
+	@Excel(name = "laborHour", width = 15)
71
+    @ApiModelProperty(value = "laborHour")
72
+    private BigDecimal laborHour;
73
+	/**machineHour*/
74
+	@Excel(name = "machineHour", width = 15)
75
+    @ApiModelProperty(value = "machineHour")
76
+    private BigDecimal machineHour;
77
+	/**burningHour*/
78
+	@Excel(name = "burningHour", width = 15)
79
+    @ApiModelProperty(value = "burningHour")
80
+    private BigDecimal burningHour;
81
+	/**auxiliaryHour*/
82
+	@Excel(name = "auxiliaryHour", width = 15)
83
+    @ApiModelProperty(value = "auxiliaryHour")
84
+    private BigDecimal auxiliaryHour;
85
+	/**otherHour*/
86
+	@Excel(name = "otherHour", width = 15)
87
+    @ApiModelProperty(value = "otherHour")
88
+    private BigDecimal otherHour;
89
+	/**versionNumber*/
90
+	@Excel(name = "versionNumber", width = 15)
91
+    @ApiModelProperty(value = "versionNumber")
92
+    private String versionNumber;
93
+	/**jobCode*/
94
+	@Excel(name = "jobCode", width = 15)
95
+    @ApiModelProperty(value = "jobCode")
96
+    private String jobCode;
97
+	/**laborHourRate*/
98
+	@Excel(name = "laborHourRate", width = 15)
99
+    @ApiModelProperty(value = "laborHourRate")
100
+    private BigDecimal laborHourRate;
101
+	/**equipHourRate*/
102
+	@Excel(name = "equipHourRate", width = 15)
103
+    @ApiModelProperty(value = "equipHourRate")
104
+    private BigDecimal equipHourRate;
105
+	/**fuelHourRate*/
106
+	@Excel(name = "fuelHourRate", width = 15)
107
+    @ApiModelProperty(value = "fuelHourRate")
108
+    private BigDecimal fuelHourRate;
109
+	/**auxiliaryHourRate*/
110
+	@Excel(name = "auxiliaryHourRate", width = 15)
111
+    @ApiModelProperty(value = "auxiliaryHourRate")
112
+    private BigDecimal auxiliaryHourRate;
113
+	/**otherHourRate*/
114
+	@Excel(name = "otherHourRate", width = 15)
115
+    @ApiModelProperty(value = "otherHourRate")
116
+    private BigDecimal otherHourRate;
117
+}

+ 175
- 117
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostStandardResult.java Просмотреть файл

@@ -13,7 +13,7 @@ import lombok.experimental.Accessors;
13 13
 import org.jeecgframework.poi.excel.annotation.Excel;
14 14
 import org.springframework.format.annotation.DateTimeFormat;
15 15
 
16
-import javax.persistence.Column;
16
+//import javax.persistence.Column;
17 17
 import java.io.Serializable;
18 18
 import java.math.BigDecimal;
19 19
 import java.util.Date;
@@ -35,157 +35,215 @@ public class AppSceneCostStandardResult implements Serializable {
35 35
     private static final long serialVersionUID = 1L;
36 36
 
37 37
     /**主键*/
38
-    @TableId(type = IdType.ASSIGN_ID)
38
+    @TableId(type = IdType.AUTO)
39 39
     @ApiModelProperty(value = "主键")
40
-    private java.lang.Integer id;
40
+    private java.lang.Long id;
41
+    /**会计期间*/
42
+    @Excel(name = "会计期间", width = 15)
43
+    @ApiModelProperty(value = "会计期间")
44
+    private java.lang.String ymonth;
45
+    /**版本号*/
46
+    @Excel(name = "版本号", width = 15)
47
+    @ApiModelProperty(value = "版本号")
48
+    private java.lang.String versionNumber;
49
+    /**阶段*/
50
+    @Excel(name = "阶段", width = 15)
51
+    @ApiModelProperty(value = "阶段")
52
+    private java.lang.String stage;
41 53
     /**工厂*/
42 54
     @Excel(name = "工厂", width = 15)
43 55
     @ApiModelProperty(value = "工厂")
44 56
     private java.lang.String factory;
45
-    /**物料号*/
46
-    @Excel(name = "物料号", width = 15)
47
-    @ApiModelProperty(value = "物料号")
48
-    private java.lang.String materialNumber;
49 57
     /**父物料号*/
50 58
     @Excel(name = "父物料号", width = 15)
51 59
     @ApiModelProperty(value = "父物料号")
52 60
     private java.lang.String parentMatnr;
53
-    /**阶段*/
54
-    @Excel(name = "阶段", width = 15)
55
-    @ApiModelProperty(value = "阶段")
56
-    private java.lang.String stage;
57
-    /**版本号*/
58
-    @Excel(name = "版本号", width = 15)
59
-    @ApiModelProperty(value = "版本号")
60
-    private java.lang.String versionNumber;
61
-    /**层级*/
61
+    /**低阶码*/
62 62
     @Excel(name = "层级", width = 15)
63 63
     @ApiModelProperty(value = "层级")
64
+    private java.lang.String lowOrderCode;
65
+    /**层级*/
66
+    @Excel(name = "展开层", width = 15)
67
+    @ApiModelProperty(value = "展开层")
64 68
     private java.lang.String layer;
65
-    /**价格类型*/
66
-    @Excel(name = "价格类型", width = 15)
67
-    @ApiModelProperty(value = "价格类型")
68
-    private java.lang.String pricetype;
69
-    /**会计期间*/
70
-    @Excel(name = "会计期间", width = 15)
71
-    @ApiModelProperty(value = "会计期间")
72
-    private java.lang.String ymonth;
73
-    /**总标准成本*/
74
-    @Excel(name = "总标准成本", width = 15)
75
-    @ApiModelProperty(value = "总标准成本")
76
-    private java.math.BigDecimal totalStandardCost;
77
-    /**本阶材料成本*/
78
-    @Excel(name = "本阶材料成本", width = 15)
79
-    @ApiModelProperty(value = "本阶材料成本")
80
-    private java.math.BigDecimal materialCostStage;
81
-    /**本阶人工成本*/
82
-    @Excel(name = "本阶人工成本", width = 15)
83
-    @ApiModelProperty(value = "本阶人工成本")
84
-    private java.math.BigDecimal laborCostStage;
69
+    /**层级*/
70
+    //@Excel(name = "展开层", width = 15)
71
+    @ApiModelProperty(value = "父展开层")
72
+    private java.lang.String player;
73
+    /**物料号*/
74
+    @Excel(name = "子物料号", width = 15)
75
+    @ApiModelProperty(value = "子物料号")
76
+    private java.lang.String materialNumber;
77
+    /**物料描述*/
78
+    @Excel(name = "物料描述", width = 20)
79
+    @ApiModelProperty(value = "子物料描述")
80
+    private java.lang.String maktx;
81
+    /**数量*/
82
+    @Excel(name = "数量", width = 15,type = 4)
83
+    @ApiModelProperty(value = "数量")
84
+    private java.math.BigDecimal menge;
85
+    /**数量*/
86
+    @Excel(name = "采购类型", width = 15)
87
+    @ApiModelProperty(value = "采购类型")
88
+    private java.lang.String manuType;
85 89
     /**本阶设备成本*/
86
-    @Excel(name = "本阶设备成本", width = 15)
87
-    @ApiModelProperty(value = "本阶设备成本")
88
-    private java.math.BigDecimal equipCostStage;
90
+    @Excel(name = "机器工时", width = 15,type = 4)
91
+    @ApiModelProperty(value = "机器工时")
92
+    private java.math.BigDecimal equipHour;
93
+    /**本阶人工成本*/
94
+    @Excel(name = "人工工时", width = 15,type = 4)
95
+    @ApiModelProperty(value = "人工工时")
96
+    private java.math.BigDecimal laborHour;
89 97
     /**本阶燃动成本*/
90
-    @Excel(name = "本阶燃动成本", width = 15)
91
-    @ApiModelProperty(value = "本阶燃动成本")
92
-    private java.math.BigDecimal burningCostStage;
98
+    @Excel(name = "燃动力工时", width = 15,type = 4)
99
+    @ApiModelProperty(value = "燃动力工时")
100
+    private java.math.BigDecimal fuelHour;
93 101
     /**本阶辅料成本*/
94
-    @Excel(name = "本阶辅料成本", width = 15)
95
-    @ApiModelProperty(value = "本阶辅料成本")
96
-    private java.math.BigDecimal auxiliaryCostStage;
102
+    @Excel(name = "辅料工时", width = 15,type = 4)
103
+    @ApiModelProperty(value = "辅料工时")
104
+    private java.math.BigDecimal auxiHour;
97 105
     /**本阶其他成本*/
98
-    @Excel(name = "本阶其他成本", width = 15)
99
-    @ApiModelProperty(value = "本阶其他成本")
100
-    private java.math.BigDecimal otherCostStage;
101
-    /**累计材料成本*/
102
-    @Excel(name = "累计材料成本", width = 15)
103
-    @ApiModelProperty(value = "累计材料成本")
104
-    private java.math.BigDecimal materialCostAccumulated;
105
-    /**累计人工成本*/
106
-    @Excel(name = "累计人工成本", width = 15)
107
-    @ApiModelProperty(value = "累计人工成本")
108
-    private java.math.BigDecimal laborCostAccumulated;
109
-    /**累计设备成本*/
110
-    @Excel(name = "累计设备成本", width = 15)
111
-    @ApiModelProperty(value = "累计设备成本")
112
-    private java.math.BigDecimal equipCostAccumulated;
113
-    /**累计燃动成本*/
114
-    @Excel(name = "累计燃动成本", width = 15)
115
-    @ApiModelProperty(value = "累计燃动成本")
116
-    private java.math.BigDecimal burningCostAccumulated;
117
-    /**累计辅料成本*/
118
-    @Excel(name = "累计辅料成本", width = 15)
119
-    @ApiModelProperty(value = "累计辅料成本")
120
-    private java.math.BigDecimal auxiliaryCostAccumulated;
121
-    /**累计其他成本*/
122
-    @Excel(name = "累计其他成本", width = 15)
123
-    @ApiModelProperty(value = "累计其他成本")
124
-    private java.math.BigDecimal otherCostAccumulated;
125
-    /**总材料成本*/
126
-    @Excel(name = "总材料成本", width = 15)
127
-    @ApiModelProperty(value = "总材料成本")
128
-    private java.math.BigDecimal materialCostTotal;
106
+    @Excel(name = "其他制费工时", width = 15,type = 4)
107
+    @ApiModelProperty(value = "其他制费工时")
108
+    private java.math.BigDecimal otherHour;
109
+
110
+
111
+    /**总其他成本*/
112
+    @Excel(name = "供应商", width = 20)
113
+    @ApiModelProperty(value = "供应商")
114
+    private String supplier;
115
+    /**总其他成本*/
116
+    @Excel(name = "供应商描述", width = 20)
117
+    @ApiModelProperty(value = "供应商描述")
118
+    private String supplierName;
119
+    /**总其他成本*/
120
+    @Excel(name = "采购信息记录", width = 15,type = 4)
121
+    @ApiModelProperty(value = "采购信息记录")
122
+    private java.math.BigDecimal purchasePrice;
123
+    /**总其他成本*/
124
+    @Excel(name = "正式合同价格", width = 20,type = 4)
125
+    @ApiModelProperty(value = "正式合同价格")
126
+    private java.math.BigDecimal contractPrice;
127
+    /**总其他成本*/
128
+    @Excel(name = "临时合同估价", width = 20,type = 4)
129
+    @ApiModelProperty(value = "临时合同估价")
130
+    private java.math.BigDecimal tempContractPrice;
131
+    /**总其他成本*/
132
+    @Excel(name = "单位材料成本", width = 20,type = 4)
133
+    @ApiModelProperty(value = "采购价格(合计)")
134
+    private java.math.BigDecimal materialCost;
129 135
     /**总人工成本*/
130
-    @Excel(name = "总人工成本", width = 15)
136
+    @Excel(name = "单位人工", width = 15,type = 4)
131 137
     @ApiModelProperty(value = "总人工成本")
132
-    private java.math.BigDecimal laborCostTotal;
138
+    private java.math.BigDecimal laborCost;
133 139
     /**总设备成本*/
134
-    @Excel(name = "总设备成本", width = 15)
140
+    @Excel(name = "单位折旧", width = 15,type = 4)
135 141
     @ApiModelProperty(value = "总设备成本")
136
-    private java.math.BigDecimal equipCostTotal;
142
+    private java.math.BigDecimal equipCost;
137 143
     /**总燃动成本*/
138
-    @Excel(name = "总燃动成本", width = 15)
144
+    @Excel(name = "单位燃动力", width = 15,type = 4)
139 145
     @ApiModelProperty(value = "总燃动成本")
140
-    private java.math.BigDecimal burningCostTotal;
146
+    private java.math.BigDecimal fuelCost;
141 147
     /**总辅料成本*/
142
-    @Excel(name = "总辅料成本", width = 15)
148
+    @Excel(name = "单位辅料", width = 15,type = 4)
143 149
     @ApiModelProperty(value = "总辅料成本")
144
-    private java.math.BigDecimal auxiliaryCostTotal;
150
+    private java.math.BigDecimal auxiliaryCost;
145 151
     /**总其他成本*/
146
-    @Excel(name = "总其他成本", width = 15)
152
+    @Excel(name = "单位其他费用", width = 15,type = 4)
147 153
     @ApiModelProperty(value = "总其他成本")
148
-    private java.math.BigDecimal otherCostTotal;
149
-    /**低阶码*/
150
-    @Excel(name = "低阶码", width = 15)
151
-    @ApiModelProperty(value = "低阶码")
152
-    private java.lang.String lowOrderCode;
153
-    /**相对用量*/
154
-    @Excel(name = "相对用量", width = 15)
155
-    @ApiModelProperty(value = "相对用量")
156
-    private java.math.BigDecimal relativeDosage;
157
-    /**相对材料成本*/
158
-    @Excel(name = "相对材料成本", width = 15)
159
-    @ApiModelProperty(value = "相对材料成本")
160
-    private java.math.BigDecimal materialCostRelative;
154
+    private java.math.BigDecimal otherCost;
155
+    /**总标准成本*/
156
+    @Excel(name = "单位成本", width = 15,type = 4)
157
+    @ApiModelProperty(value = "总标准成本")
158
+    private java.math.BigDecimal standardCost;
159
+    /**本阶设备成本*/
160
+    @Excel(name = "机器工时(累积)", width = 15,type = 4)
161
+    @ApiModelProperty(value = "机器工时(累积)")
162
+    private java.math.BigDecimal equipHourTotal;
163
+    /**本阶人工成本*/
164
+    @Excel(name = "人工工时(累积)", width = 15,type = 4)
165
+    @ApiModelProperty(value = "人工工时(累积)")
166
+    private java.math.BigDecimal laborHourTotal;
167
+    /**本阶燃动成本*/
168
+    @Excel(name = "燃动力工时(累积)", width = 20,type = 4)
169
+    @ApiModelProperty(value = "燃动力工时(累积)")
170
+    private java.math.BigDecimal fuelHourTotal;
171
+    /**本阶辅料成本*/
172
+    @Excel(name = "辅料工时(累积)", width = 15,type = 4)
173
+    @ApiModelProperty(value = "辅料工时(累积)")
174
+    private java.math.BigDecimal auxiHourTotal;
175
+    /**本阶其他成本*/
176
+    @Excel(name = "其他制费工时(累积)", width = 20,type = 4)
177
+    @ApiModelProperty(value = "其他制费工时(累积)")
178
+    private java.math.BigDecimal otherHourTotal;
179
+
180
+    @Excel(name = "结构单位材料成本(累积)", width = 15,type = 4)
181
+    @ApiModelProperty(value = "总材料成本")
182
+    private java.math.BigDecimal materialCostTotal;
161 183
     /**相对人工成本*/
162
-    @Excel(name = "相对人工成本", width = 15)
184
+    @Excel(name = "结构单位人工(累积)", width = 15)
163 185
     @ApiModelProperty(value = "相对人工成本")
164
-    private java.math.BigDecimal laborCostRelative;
186
+    private java.math.BigDecimal laborCostTotal;
187
+    /**相对制费成本*/
188
+    @Excel(name = "结构单位折旧(累积)", width = 15)
189
+    @ApiModelProperty(value = "相对制费成本")
190
+    private java.math.BigDecimal equipCostTotal;
165 191
     /**相对制费成本*/
166
-    @Excel(name = "相对制费成本", width = 15)
192
+    @Excel(name = "结构单位燃动力(累积)", width = 15)
167 193
     @ApiModelProperty(value = "相对制费成本")
168
-    private java.math.BigDecimal manufactureCostRelative;
194
+    private java.math.BigDecimal fuelCostTotal;
195
+    /**相对制费成本*/
196
+    @Excel(name = "结构单位辅料(累积)", width = 15)
197
+    @ApiModelProperty(value = "相对制费成本")
198
+    private java.math.BigDecimal auxiliaryCostTotal;
199
+    /**相对制费成本*/
200
+    @Excel(name = "结构单位其他费用(累积)", width = 15)
201
+    @ApiModelProperty(value = "相对制费成本")
202
+    private java.math.BigDecimal otherCostTotal;
203
+    /**相对制费成本*/
204
+    @Excel(name = "单位总成本(累积)", width = 15)
205
+    @ApiModelProperty(value = "相对制费成本")
206
+    private java.math.BigDecimal totalStandardCost;
207
+//    /**总材料成本*/
208
+//    @Excel(name = "采购价格(合计)", width = 15,type = 4)
209
+//    @ApiModelProperty(value = "总材料成本")
210
+//    private java.math.BigDecimal materialCostTotal;
211
+    /**总其他成本*/
212
+    @Excel(name = "最新开票金额(单价)", width = 20,type = 4)
213
+    @ApiModelProperty(value = "最新开票金额(单价)")
214
+    private java.math.BigDecimal invoicePrice;
215
+    /**总其他成本*/
216
+    @Excel(name = "最新开票价格(合计)", width = 20,type = 4)
217
+    @ApiModelProperty(value = "最新开票价格(合计)")
218
+    private java.math.BigDecimal invoiceTotal;
219
+    /**总其他成本*/
220
+    @Excel(name = "开票金额合计与采购价格合计之差", width = 20,type = 4)
221
+    @ApiModelProperty(value = "开票金额合计与采购价格合计之差")
222
+    private java.math.BigDecimal invoiceDiff;
223
+    /**相对用量*/
224
+//    @Excel(name = "相对用量", width = 15)
225
+//    @ApiModelProperty(value = "相对用量")
226
+//    private java.math.BigDecimal relativeDosage;
227
+//    /**相对材料成本*/
228
+//    @Excel(name = "相对材料成本", width = 15)
229
+//    @ApiModelProperty(value = "相对材料成本")
230
+//    private java.math.BigDecimal materialCostRelative;
231
+
169 232
     /**相对总成本*/
170
-    @Excel(name = "相对总成本", width = 15)
171
-    @ApiModelProperty(value = "相对总成本")
172
-    private java.math.BigDecimal totalCostRelative;
233
+//    @Excel(name = "相对总成本", width = 15)
234
+//    @ApiModelProperty(value = "相对总成本")
235
+//    private java.math.BigDecimal totalCostRelative;
173 236
     /**创建时间*/
174 237
     @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
175 238
     @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
176 239
     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
177 240
     @ApiModelProperty(value = "创建时间")
178 241
     private java.util.Date createdTime;
179
-    /**物料描述*/
180
-    @Excel(name = "物料描述", width = 15)
181
-    @ApiModelProperty(value = "物料描述")
182
-    private java.lang.String maktx;
183
-    /**数量*/
184
-    @Excel(name = "数量", width = 15)
185
-    @ApiModelProperty(value = "数量")
186
-    private java.math.BigDecimal menge;
187
-    /**数量*/
188
-    @Excel(name = "制造类型", width = 15)
189
-    @ApiModelProperty(value = "制造类型")
190
-    private java.lang.String manuType;
242
+    /**价格类型*/
243
+    //@Excel(name = "价格类型", width = 15)
244
+    @ApiModelProperty(value = "价格类型")
245
+    private java.lang.String pricetype;
246
+
247
+
248
+
191 249
 }

+ 18
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostActualMapper.java Просмотреть файл

@@ -0,0 +1,18 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import java.util.List;
4
+
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostActual;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
9
+
10
+/**
11
+ * @Description: app_scene_cost_actual
12
+ * @Author: jeecg-boot
13
+ * @Date:   2024-10-15
14
+ * @Version: V1.0
15
+ */
16
+public interface AppSceneCostActualMapper extends BaseMapper<AppSceneCostActual> {
17
+
18
+}

+ 17
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostAufnrMatnrMapper.java Просмотреть файл

@@ -0,0 +1,17 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import java.util.List;
4
+
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostAufnrMatnr;
6
+import org.apache.ibatis.annotations.Param;
7
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
8
+
9
+/**
10
+ * @Description: app_scene_cost_aufnr_matnr
11
+ * @Author: jeecg-boot
12
+ * @Date:   2024-10-05
13
+ * @Version: V1.0
14
+ */
15
+public interface AppSceneCostAufnrMatnrMapper extends BaseMapper<AppSceneCostAufnrMatnr> {
16
+
17
+}

+ 7
- 7
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostBomRelevancyMapper.java Просмотреть файл

@@ -17,16 +17,16 @@ import java.util.List;
17 17
  */
18 18
 public interface AppSceneCostBomRelevancyMapper extends BaseMapper<AppSceneCostBomRelevancy> {
19 19
     @Select("WITH RECURSIVE BOM_Tree AS (\n" +
20
-            "    SELECT  matnr, idnrk, menge/bmeng as menge,1.000000 as pmenge,1.000000 as topmenge, 1 AS depth\n" +
20
+            "    SELECT  werks,matnr, idnrk, menge/bmeng as menge,1.000000 as pmenge,menge/bmeng as topmenge, 1 AS depth,cast( ROW_NUMBER() OVER (partition by matnr  ORDER BY posnr ) AS CHAR ) AS layer,'00000000000000000000' as player \n" +
21 21
                     "    FROM app_scene_cost_bom_relevancy\n" +
22
-                    "    WHERE matnr = #{parentId}\n" +
22
+                    "    WHERE matnr = #{parentId} and werks= #{werk}\n" +
23 23
                     "    UNION ALL\n" +
24
-                    "    SELECT b.matnr, b.idnrk, b.menge/b.bmeng as menge, BOM_Tree.menge as pmenge,BOM_Tree.menge*(b.menge/b.bmeng) AS topmenge,BOM_Tree.depth + 1\n" +
25
-                    "    FROM app_scene_cost_bom_relevancy b\n" +
26
-                    "    JOIN BOM_Tree ON b.matnr = BOM_Tree.idnrk\n" +
24
+                    "    SELECT b.werks,b.matnr, b.idnrk, b.menge/b.bmeng as menge, BOM_Tree.menge as pmenge,BOM_Tree.topmenge*(b.menge/b.bmeng) AS topmenge,BOM_Tree.depth + 1 as depth,concat( BOM_Tree.layer, '.', b.layer ) AS layer,BOM_Tree.layer as player \n" +
25
+                    "    FROM ( SELECT werks,matnr, idnrk, menge, bmeng, cast( ROW_NUMBER() OVER (partition by matnr,werks ORDER BY posnr ) AS CHAR ) AS layer FROM app_scene_cost_bom_relevancy ) b\n" +
26
+                    "    JOIN BOM_Tree ON b.matnr = BOM_Tree.idnrk and b.werks=BOM_Tree.werks \n" +
27 27
                     ")\n" +
28
-                    "SELECT matnr, idnrk, menge,pmenge,topmenge, depth FROM BOM_Tree")
29
-    List<BomTreeVo> findChildrenByParentId(String parentId);
28
+                    "SELECT werks,matnr, idnrk, menge,pmenge,topmenge, depth,layer,player FROM BOM_Tree")
29
+    List<BomTreeVo> findChildrenByParentId(String parentId,String werk);
30 30
 
31 31
 
32 32
     @Select("${selectSql}")

+ 17
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostInvoiceMapper.java Просмотреть файл

@@ -0,0 +1,17 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import java.util.List;
4
+
5
+import org.apache.ibatis.annotations.Param;
6
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostInvoice;
7
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
8
+
9
+/**
10
+ * @Description: app_scene_cost_invoice
11
+ * @Author: jeecg-boot
12
+ * @Date:   2024-09-22
13
+ * @Version: V1.0
14
+ */
15
+public interface AppSceneCostInvoiceMapper extends BaseMapper<AppSceneCostInvoice> {
16
+
17
+}

+ 18
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningAufnrMapper.java Просмотреть файл

@@ -0,0 +1,18 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import java.util.List;
4
+
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningAufnr;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
9
+
10
+/**
11
+ * @Description: app_scene_cost_mining_aufnr
12
+ * @Author: jeecg-boot
13
+ * @Date:   2024-10-15
14
+ * @Version: V1.0
15
+ */
16
+public interface AppSceneCostMiningAufnrMapper extends BaseMapper<AppSceneCostMiningAufnr> {
17
+
18
+}

+ 17
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningDiffMapper.java Просмотреть файл

@@ -0,0 +1,17 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import java.util.List;
4
+
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningDiff;
6
+import org.apache.ibatis.annotations.Param;
7
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
8
+
9
+/**
10
+ * @Description: app_scene_cost_mining_diff
11
+ * @Author: jeecg-boot
12
+ * @Date:   2024-10-15
13
+ * @Version: V1.0
14
+ */
15
+public interface AppSceneCostMiningDiffMapper extends BaseMapper<AppSceneCostMiningDiff> {
16
+
17
+}

+ 17
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningLaborMapper.java Просмотреть файл

@@ -0,0 +1,17 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import java.util.List;
4
+
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningLabor;
6
+import org.apache.ibatis.annotations.Param;
7
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
8
+
9
+/**
10
+ * @Description: app_scene_cost_mining_labor
11
+ * @Author: jeecg-boot
12
+ * @Date:   2024-11-05
13
+ * @Version: V1.0
14
+ */
15
+public interface AppSceneCostMiningLaborMapper extends BaseMapper<AppSceneCostMiningLabor> {
16
+
17
+}

+ 17
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningMaterialMapper.java Просмотреть файл

@@ -0,0 +1,17 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import java.util.List;
4
+
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningMaterial;
6
+import org.apache.ibatis.annotations.Param;
7
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
8
+
9
+/**
10
+ * @Description: app_scene_cost_mining_material
11
+ * @Author: jeecg-boot
12
+ * @Date:   2024-10-15
13
+ * @Version: V1.0
14
+ */
15
+public interface AppSceneCostMiningMaterialMapper extends BaseMapper<AppSceneCostMiningMaterial> {
16
+
17
+}

+ 17
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningReasonMapper.java Просмотреть файл

@@ -0,0 +1,17 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import java.util.List;
4
+
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningReason;
6
+import org.apache.ibatis.annotations.Param;
7
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
8
+
9
+/**
10
+ * @Description: app_scene_cost_mining_reason
11
+ * @Author: jeecg-boot
12
+ * @Date:   2024-10-15
13
+ * @Version: V1.0
14
+ */
15
+public interface AppSceneCostMiningReasonMapper extends BaseMapper<AppSceneCostMiningReason> {
16
+
17
+}

+ 17
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningResultMapper.java Просмотреть файл

@@ -0,0 +1,17 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import java.util.List;
4
+
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningResult;
6
+import org.apache.ibatis.annotations.Param;
7
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
8
+
9
+/**
10
+ * @Description: app_scene_cost_mining_result
11
+ * @Author: jeecg-boot
12
+ * @Date:   2024-10-15
13
+ * @Version: V1.0
14
+ */
15
+public interface AppSceneCostMiningResultMapper extends BaseMapper<AppSceneCostMiningResult> {
16
+
17
+}

+ 18
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapAfruMapper.java Просмотреть файл

@@ -0,0 +1,18 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import java.util.List;
4
+
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapAfru;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
9
+
10
+/**
11
+ * @Description: app_scene_cost_sap_afru
12
+ * @Author: jeecg-boot
13
+ * @Date:   2024-10-15
14
+ * @Version: V1.0
15
+ */
16
+public interface AppSceneCostSapAfruMapper extends BaseMapper<AppSceneCostSapAfru> {
17
+
18
+}

+ 18
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapEineMapper.java Просмотреть файл

@@ -0,0 +1,18 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import java.util.List;
4
+
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapEine;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
9
+
10
+/**
11
+ * @Description: app_scene_cost_sap_eine
12
+ * @Author: jeecg-boot
13
+ * @Date:   2024-09-21
14
+ * @Version: V1.0
15
+ */
16
+public interface AppSceneCostSapEineMapper extends BaseMapper<AppSceneCostSapEine> {
17
+
18
+}

+ 17
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapEkpoMapper.java Просмотреть файл

@@ -0,0 +1,17 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import java.util.List;
4
+
5
+import org.apache.ibatis.annotations.Param;
6
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapEkpo;
7
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
8
+
9
+/**
10
+ * @Description: app_scene_cost_sap_ekpo
11
+ * @Author: jeecg-boot
12
+ * @Date:   2024-09-22
13
+ * @Version: V1.0
14
+ */
15
+public interface AppSceneCostSapEkpoMapper extends BaseMapper<AppSceneCostSapEkpo> {
16
+
17
+}

+ 17
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapHourRateMapper.java Просмотреть файл

@@ -0,0 +1,17 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import java.util.List;
4
+
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapHourRate;
6
+import org.apache.ibatis.annotations.Param;
7
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
8
+
9
+/**
10
+ * @Description: app_scene_cost_sap_hour_rate
11
+ * @Author: jeecg-boot
12
+ * @Date:   2024-10-15
13
+ * @Version: V1.0
14
+ */
15
+public interface AppSceneCostSapHourRateMapper extends BaseMapper<AppSceneCostSapHourRate> {
16
+
17
+}

+ 17
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapZcorcMapper.java Просмотреть файл

@@ -0,0 +1,17 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import java.util.List;
4
+
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
6
+import org.apache.ibatis.annotations.Param;
7
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
8
+
9
+/**
10
+ * @Description: app_scene_cost_sap_zcorc
11
+ * @Author: jeecg-boot
12
+ * @Date:   2024-10-15
13
+ * @Version: V1.0
14
+ */
15
+public interface AppSceneCostSapZcorcMapper extends BaseMapper<AppSceneCostSapZcorc> {
16
+
17
+}

+ 17
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapZtmmx004Mapper.java Просмотреть файл

@@ -0,0 +1,17 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import java.util.List;
4
+
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZtmmx004;
6
+import org.apache.ibatis.annotations.Param;
7
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
8
+
9
+/**
10
+ * @Description: app_scene_cost_sap_ztmmx004
11
+ * @Author: jeecg-boot
12
+ * @Date:   2024-10-17
13
+ * @Version: V1.0
14
+ */
15
+public interface AppSceneCostSapZtmmx004Mapper extends BaseMapper<AppSceneCostSapZtmmx004> {
16
+
17
+}

+ 18
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostStandardBomMapper.java Просмотреть файл

@@ -0,0 +1,18 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import java.util.List;
4
+
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardBom;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
9
+
10
+/**
11
+ * @Description: app_scene_cost_standard_bom
12
+ * @Author: jeecg-boot
13
+ * @Date:   2024-10-15
14
+ * @Version: V1.0
15
+ */
16
+public interface AppSceneCostStandardBomMapper extends BaseMapper<AppSceneCostStandardBom> {
17
+
18
+}

+ 17
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostStandardProductprocessMapper.java Просмотреть файл

@@ -0,0 +1,17 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import java.util.List;
4
+
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardProductprocess;
6
+import org.apache.ibatis.annotations.Param;
7
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
8
+
9
+/**
10
+ * @Description: app_scene_cost_standard_productprocess
11
+ * @Author: jeecg-boot
12
+ * @Date:   2024-10-15
13
+ * @Version: V1.0
14
+ */
15
+public interface AppSceneCostStandardProductprocessMapper extends BaseMapper<AppSceneCostStandardProductprocess> {
16
+
17
+}

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostActualMapper.xml Просмотреть файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostActualMapper">
4
+
5
+</mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostAufnrMatnrMapper.xml Просмотреть файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostAufnrMatnrMapper">
4
+
5
+</mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostInvoiceMapper.xml Просмотреть файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostInvoiceMapper">
4
+
5
+</mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningAufnrMapper.xml Просмотреть файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.zzsmart.qomo.modules.demo..mapper.AppSceneCostMiningAufnrMapper">
4
+
5
+</mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningDiffMapper.xml Просмотреть файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.zzsmart.qomo.modules.demo..mapper.AppSceneCostMiningDiffMapper">
4
+
5
+</mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningLaborMapper.xml Просмотреть файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.zzsmart.qomo.modules.demo..mapper.AppSceneCostMiningLaborMapper">
4
+
5
+</mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningMaterialMapper.xml Просмотреть файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.zzsmart.qomo.modules.demo..mapper.AppSceneCostMiningMaterialMapper">
4
+
5
+</mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningReasonMapper.xml Просмотреть файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.zzsmart.qomo.modules.demo..mapper.AppSceneCostMiningReasonMapper">
4
+
5
+</mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningResultMapper.xml Просмотреть файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.zzsmart.qomo.modules.demo..mapper.AppSceneCostMiningResultMapper">
4
+
5
+</mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapAfruMapper.xml Просмотреть файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostSapAfruMapper">
4
+
5
+</mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapEineMapper.xml Просмотреть файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.zzsmart.qomo.modules.demo..mapper.AppSceneCostSapEineMapper">
4
+
5
+</mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapEkpoMapper.xml Просмотреть файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.zzsmart.qomo.modules.demo.com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostSapEkpoMapper">
4
+
5
+</mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapHourRateMapper.xml Просмотреть файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostSapHourRateMapper">
4
+
5
+</mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapZcorcMapper.xml Просмотреть файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostSapZcorcMapper">
4
+
5
+</mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapZtmmx004Mapper.xml Просмотреть файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostSapZtmmx004Mapper">
4
+
5
+</mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostStandardBomMapper.xml Просмотреть файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostStandardBomMapper">
4
+
5
+</mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostStandardProductprocessMapper.xml Просмотреть файл

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostStandardProductprocessMapper">
4
+
5
+</mapper>

+ 3380
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/CostEffectiveService.java
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 465
- 117
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/StandardCostService.java Просмотреть файл

@@ -2,6 +2,7 @@ package com.zzsmart.qomo.kn.cost.manage.plugin;
2 2
 
3 3
 import com.alibaba.fastjson.JSON;
4 4
 import com.alibaba.fastjson.JSONObject;
5
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5 6
 import com.zzsmart.qomo.kn.cost.manage.entity.*;
6 7
 import com.zzsmart.qomo.kn.cost.manage.enums.FeeTypeEnum;
7 8
 import com.zzsmart.qomo.kn.cost.manage.enums.HourOrRateTypeEnum;
@@ -13,7 +14,7 @@ import com.zzsmart.qomo.kn.cost.manage.vo.FlowTaskInfoVO;
13 14
 import com.zzsmart.qomo.kn.cost.manage.vo.TotalResultValue;
14 15
 import com.zzsmart.qomo.plugin.task.api.TaskExecutionContext;
15 16
 import io.swagger.models.auth.In;
16
-import liquibase.pro.packaged.B;
17
+//import liquibase.pro.packaged.B;
17 18
 import lombok.extern.slf4j.Slf4j;
18 19
 import org.springframework.beans.factory.annotation.Autowired;
19 20
 import org.springframework.stereotype.Service;
@@ -21,6 +22,7 @@ import org.springframework.transaction.annotation.Transactional;
21 22
 
22 23
 import javax.annotation.PostConstruct;
23 24
 import java.math.BigDecimal;
25
+import java.text.SimpleDateFormat;
24 26
 import java.util.*;
25 27
 import java.util.stream.Collectors;
26 28
 
@@ -35,6 +37,10 @@ public class StandardCostService {
35 37
     AppSceneCostBomRelevancyMapper appSceneCostBomRelevancyMapper;
36 38
     @Autowired
37 39
     IAppSceneCostBomRelevancyService costMaterialBomService;
40
+    @Autowired
41
+    IAppSceneCostStandardBomService iAppSceneCostStandardBomService;
42
+    @Autowired
43
+    IAppSceneCostStandardProductprocessService iAppSceneCostStandardProductprocessService;
38 44
 
39 45
     /**
40 46
      * 小时费率
@@ -44,8 +50,8 @@ public class StandardCostService {
44 50
     /**
45 51
      * 采购单价
46 52
      */
47
-    @Autowired
48
-    IAppSceneCostPurchaseRecordService costPurchaseRecordService;
53
+    //@Autowired
54
+    //IAppSceneCostPurchaseRecordService costPurchaseRecordService;
49 55
     /**
50 56
      * 工序
51 57
      */
@@ -74,18 +80,50 @@ public class StandardCostService {
74 80
     @Autowired
75 81
     private IAppSceneCostMaterialService iAppSceneCostMaterialService;
76 82
 
83
+    @Autowired
84
+    private IAppSceneCostSapEineService iAppSceneCostSapEineService;
85
+
86
+    @Autowired
87
+    private IAppSceneCostSapEkpoService iAppSceneCostSapEkpoService;
88
+
89
+    @Autowired
90
+    private IAppSceneCostInvoiceService iAppSceneCostInvoiceService;
91
+
92
+    @Autowired
93
+    private IAppSceneCostAufnrMatnrService iAppSceneCostAufnrMatnrService;
94
+
95
+    //@Autowired
96
+    //private IAppSceneCostStandardBomService iAppSceneCostStandardBomService;
97
+
98
+    //@Autowired
99
+    //private IAppSceneCostStandardProductprocessService iAppSceneCostStandardProductprocessService;
100
+
101
+    @Autowired
102
+    private IAppSceneCostBomRelevancyService iAppSceneCostBomRelevancyService;
103
+
104
+    @Autowired
105
+    private IAppSceneCostProductProcessMaintenanceService iAppSceneCostProductProcessMaintenanceService;
106
+
77 107
     @PostConstruct
78 108
     public void init() {
79 109
         standardCostService = this;
80 110
         standardCostService.appSceneCostBomRelevancyMapper = this.appSceneCostBomRelevancyMapper;
81 111
         standardCostService.appSceneCostCountService = this.appSceneCostCountService;
82 112
         standardCostService.costMaterialBomService = this.costMaterialBomService;
83
-        standardCostService.costPurchaseRecordService = this.costPurchaseRecordService;
113
+        //standardCostService.costPurchaseRecordService = this.costPurchaseRecordService;
84 114
         standardCostService.iHourRateService = this.iHourRateService;
85 115
         standardCostService.costMaterialProcessHoursService = this.costMaterialProcessHoursService;
86 116
         standardCostService.iAppSceneCostResultValueService = this.iAppSceneCostResultValueService;
87 117
         standardCostService.iAppSceneCostStandardResultService = this.iAppSceneCostStandardResultService;
88 118
         standardCostService.iAppSceneCostMaterialService = this.iAppSceneCostMaterialService;
119
+        standardCostService.iAppSceneCostSapEineService=this.iAppSceneCostSapEineService;
120
+        standardCostService.iAppSceneCostSapEkpoService=this.iAppSceneCostSapEkpoService;
121
+        standardCostService.iAppSceneCostInvoiceService=this.iAppSceneCostInvoiceService;
122
+        standardCostService.iAppSceneCostAufnrMatnrService = this.iAppSceneCostAufnrMatnrService;
123
+        standardCostService.iAppSceneCostBomRelevancyService = this.iAppSceneCostBomRelevancyService;
124
+        standardCostService.iAppSceneCostStandardBomService=this.iAppSceneCostStandardBomService;
125
+        standardCostService.iAppSceneCostStandardProductprocessService=this.iAppSceneCostStandardProductprocessService;
126
+        standardCostService.iAppSceneCostProductProcessMaintenanceService=this.iAppSceneCostProductProcessMaintenanceService;
89 127
     }
90 128
 
91 129
     /**
@@ -115,7 +153,7 @@ public class StandardCostService {
115 153
             String sql = flowTaskInfoVO.getSqlString();
116 154
             log.info("传递过来的SQL语句:" + sql);
117 155
             //获取顶部物料下所有的物料信息并存储到新的表中
118
-            getAllMaterialBomInfoByTopMaterialCode(topMaterialCode, taskType, taskCode, flowInstanceId != null ? Integer.valueOf(flowInstanceId) : null);
156
+            getAllMaterialBomInfoByTopMaterialCode(flowTaskInfoVO.getWerks(),topMaterialCode, taskType, taskCode, flowInstanceId != null ? Integer.valueOf(flowInstanceId) : null);
119 157
         } catch (Exception e) {
120 158
             throw new RuntimeException(e);
121 159
         }
@@ -130,9 +168,9 @@ public class StandardCostService {
130 168
      * @param taskCode        任务编号
131 169
      * @param flowInstanceId  流程实例id
132 170
      */
133
-    public static void getAllMaterialBomInfoByTopMaterialCode(String topMaterialCode, String taskType, String taskCode, Integer flowInstanceId) {
171
+    public static void getAllMaterialBomInfoByTopMaterialCode(String werks,String topMaterialCode, String taskType, String taskCode, Integer flowInstanceId) {
134 172
         log.info("getAllMaterialBomInfoByTopMaterialCode");
135
-        List<BomTreeVo> list = standardCostService.costMaterialBomService.queryAllBomInfoByTopMaterialCode(topMaterialCode);
173
+        List<BomTreeVo> list = standardCostService.costMaterialBomService.queryAllBomInfoByTopMaterialCode(topMaterialCode,werks);
136 174
         List<String> MarterialNoList = new ArrayList<>();
137 175
         if (list != null && list.size() > 0) {
138 176
             MarterialNoList = list.stream().filter(s -> s.getIdnrk() != null).map(BomTreeVo::getIdnrk).collect(Collectors.toList());
@@ -140,14 +178,17 @@ public class StandardCostService {
140 178
         Map<String, String> manuTypeMap = standardCostService.iAppSceneCostMaterialService.getManuTypeByMaterialNo(MarterialNoList);
141 179
 
142 180
         int maxdepth = 0;
143
-        List<AppSceneCostResultValue> appSceneCostResultValues=new ArrayList<>();
181
+        List<AppSceneCostResultValue> appSceneCostResultValues = new ArrayList<>();
144 182
         log.info("Full ParamTask list: {}", list);
145 183
         //TODO material.getMeins()领用量??为什么是ST字母
146 184
         for (int i = 0; list != null && i < list.size(); i++) {
147 185
             BomTreeVo material = list.get(i);
148 186
             String manutype = "";
149
-            if(manuTypeMap.containsKey(material.getIdnrk())){
150
-                manutype  = manuTypeMap.get(material.getIdnrk());
187
+            if (manuTypeMap.containsKey(material.getIdnrk())) {
188
+                manutype = manuTypeMap.get(material.getIdnrk());
189
+            }
190
+            if(material.getPlayer().equals("00000000000000000000")){
191
+                material.setPlayer("0");
151 192
             }
152 193
             //TODO  物料领用数据
153 194
             BigDecimal num1 = material.getMenge();
@@ -163,41 +204,47 @@ public class StandardCostService {
163 204
                     .topnum(material.getTopmenge())
164 205
                     .depth(material.depth)
165 206
                     .manuType(manutype)
207
+                    .layer(material.layer)
208
+                    .player(material.player)
209
+                    .werks(material.werks)
166 210
                     .build();
167 211
             appSceneCostResultValues.add(appSceneCostResultValue);
168
-            if(material.depth>maxdepth){
169
-                maxdepth=material.depth;
212
+            if (material.depth > maxdepth) {
213
+                maxdepth = material.depth;
170 214
             }
171 215
             //standardCostService.iAppSceneCostResultValueService.save(appSceneCostResultValue);
172 216
         }
173
-        Map<String,Integer> mapIndex = new HashMap<>();
174
-        for (int i=1;i<=maxdepth;++i){
175
-            //int index=1;
176
-            for (AppSceneCostResultValue appSceneCostResultValue:appSceneCostResultValues){
177
-                if(appSceneCostResultValue.getDepth()==i){
178
-                    String parentlayer = "";
179
-                    if(i==1){
180
-                        parentlayer="0";
181
-                    }else{
182
-                        for (AppSceneCostResultValue appSceneCostResultValue1:appSceneCostResultValues){
183
-                            if(appSceneCostResultValue1.getMarterialNo().equals(appSceneCostResultValue.getParentMarterialNo())&&(appSceneCostResultValue1.getDepth()+1==appSceneCostResultValue.getDepth())){
184
-                                parentlayer=appSceneCostResultValue1.getLayer();
185
-                            }
186
-                        }
187
-                    }
188
-                    int index = 1;
189
-                    if(mapIndex.containsKey(parentlayer)){
190
-                        index = mapIndex.get(parentlayer);
191
-                    }else{
192
-                        mapIndex.put(parentlayer,index);
193
-                    }
194
-                    String layer = parentlayer+"-"+String.valueOf(index);
195
-                    index++;
196
-                    mapIndex.put(parentlayer,index);
197
-                    appSceneCostResultValue.setLayer(layer);
198
-                }
199
-            }
200
-        }
217
+//        Map<String, Integer> mapIndex = new HashMap<>();
218
+//        for (int i = 1; i <= maxdepth; ++i) {
219
+//            //int index=1;
220
+//            for (AppSceneCostResultValue appSceneCostResultValue : appSceneCostResultValues) {
221
+//                if (appSceneCostResultValue.getDepth() == i) {
222
+//                    String parentlayer = "";
223
+//                    if (i == 1) {
224
+//                        parentlayer = "0";
225
+//                    } else {
226
+//                        for (AppSceneCostResultValue appSceneCostResultValue1 : appSceneCostResultValues) {
227
+//                            if (appSceneCostResultValue1.getMarterialNo().equals(appSceneCostResultValue.getParentMarterialNo()) && (appSceneCostResultValue1.getDepth() + 1 == appSceneCostResultValue.getDepth())) {
228
+//                                parentlayer = appSceneCostResultValue1.getLayer();
229
+//                            }
230
+//                        }
231
+//                    }
232
+//                    int index = 1;
233
+//                    if (mapIndex.containsKey(parentlayer)) {
234
+//                        index = mapIndex.get(parentlayer);
235
+//                    } else {
236
+//                        mapIndex.put(parentlayer, index);
237
+//                    }
238
+//                    String layer = parentlayer + "." + String.valueOf(index);
239
+//                    if(parentlayer.equals("0")){
240
+//                        layer=String.valueOf(index);
241
+//                    }
242
+//                    index++;
243
+//                    mapIndex.put(parentlayer, index);
244
+//                    appSceneCostResultValue.setLayer(layer);
245
+//                }
246
+//            }
247
+//        }
201 248
         standardCostService.iAppSceneCostResultValueService.saveBatch(appSceneCostResultValues);
202 249
 
203 250
         AppSceneCostResultValue appSceneCostResultValue = AppSceneCostResultValue.builder()
@@ -211,7 +258,9 @@ public class StandardCostService {
211 258
                 .pnum(new BigDecimal(1))
212 259
                 .topnum(new BigDecimal(1))
213 260
                 .depth(0)
261
+                .werks(werks)
214 262
                 .layer("0")
263
+                .player("")
215 264
                 .manuType("E")
216 265
                 .build();
217 266
         standardCostService.iAppSceneCostResultValueService.save(appSceneCostResultValue);
@@ -236,17 +285,39 @@ public class StandardCostService {
236 285
             MarterialNoList = list.stream().filter(s -> s.getMarterialNo() != null).map(AppSceneCostResultValue::getMarterialNo).collect(Collectors.toList());
237 286
         }
238 287
         //查询物料的采购价
239
-        Map<String, BigDecimal> purchasePriceMap = standardCostService.costPurchaseRecordService.getMinCostPurchasePriceByMaterialNo(MarterialNoList);
288
+        Map<String, AppSceneCostSapEine> purchasePriceMap = standardCostService.iAppSceneCostSapEineService.getPrices(MarterialNoList);
289
+        //查询物料的临时合同估价
290
+        Map<String, BigDecimal> ekpoPriceMap = standardCostService.iAppSceneCostSapEkpoService.getPrices(MarterialNoList);
291
+        //查询物料的临时合同估价
292
+        Map<String, BigDecimal> invoicePriceMap = standardCostService.iAppSceneCostInvoiceService.getPrices(MarterialNoList);
240 293
         for (int i = 0; i < list.size(); i++) {
241 294
             AppSceneCostResultValue appSceneCostResultValue = list.get(i);
242 295
             String marterialNo = appSceneCostResultValue.getMarterialNo();
243
-            BigDecimal num = appSceneCostResultValue.getNum();
296
+            BigDecimal num = appSceneCostResultValue.getTopnum();
244 297
             if (marterialNo != null && num != null && (new BigDecimal(num.toString()).compareTo(BigDecimal.ZERO)) != 0) {
245 298
                 BigDecimal price = new BigDecimal(0);
246 299
                 String price_type = "";
247
-                if(appSceneCostResultValue.getManuType()!=null&&appSceneCostResultValue.getManuType().equals("F")){
248
-                    price = purchasePriceMap.get(marterialNo);
249
-                    price_type = "purchase_record";
300
+                String supplier = "";
301
+                String suppliername = "";
302
+                BigDecimal ekpo_price = new BigDecimal(0);
303
+                BigDecimal invoice_price = new BigDecimal(0);
304
+                if (appSceneCostResultValue.getManuType() != null && (appSceneCostResultValue.getManuType().equals("F") || appSceneCostResultValue.getManuType().equals("F30"))) {
305
+                    if(purchasePriceMap.containsKey(marterialNo)) {
306
+                        price = purchasePriceMap.get(marterialNo).getCnyPrice();
307
+                        supplier = purchasePriceMap.get(marterialNo).getLifnr();
308
+                        suppliername=purchasePriceMap.get(marterialNo).getName1();
309
+                        price_type = "purchase_record";
310
+                    }
311
+                    if(ekpoPriceMap.containsKey(marterialNo)){
312
+                        ekpo_price = ekpoPriceMap.get(marterialNo);
313
+                        if(price_type.equals("")){
314
+                            price_type = "ekpo_price";
315
+                            price = ekpo_price;
316
+                        }
317
+                    }
318
+                }
319
+                if(invoicePriceMap.containsKey(marterialNo)){
320
+                    invoice_price = invoicePriceMap.get(marterialNo);
250 321
                 }
251 322
                 //purchasePriceMap.get(marterialNo);
252 323
                 //if (price == null) {
@@ -275,6 +346,12 @@ public class StandardCostService {
275 346
                         .manuType(appSceneCostResultValue.getManuType())
276 347
                         .depth(appSceneCostResultValue.getDepth())
277 348
                         .layer(appSceneCostResultValue.getLayer())
349
+                        .player(appSceneCostResultValue.getPlayer())
350
+                        .supplier(supplier)
351
+                        .supplierName(suppliername)
352
+                        .ekpoPrice(ekpo_price)
353
+                        .invoicePrice(invoice_price)
354
+                        .werks(appSceneCostResultValue.getWerks())
278 355
                         .build();
279 356
                 standardCostService.iAppSceneCostResultValueService.save(resultValue);
280 357
             }
@@ -346,7 +423,7 @@ public class StandardCostService {
346 423
     public static void countManufacturingCost(String topMaterialCode, String taskType, String taskCode, Integer flowInstanceId) {
347 424
         log.info("countManufacturingCost");
348 425
         //1.查询出人员工时费率
349
-        Map<String,AppSceneCostHourRate> mapHourRate = standardCostService.iHourRateService.getOneHourRateInfo();
426
+        Map<String, AppSceneCostHourRate> mapHourRate = standardCostService.iHourRateService.getOneHourRateInfo();
350 427
         BigDecimal hourRate = new BigDecimal("0");
351 428
         //if (hourRateInfo != null) {
352 429
         //    hourRate = hourRateInfo.getLaborHourRate();
@@ -360,25 +437,30 @@ public class StandardCostService {
360 437
             MarterialNoList = list.stream().filter(s -> s.getMarterialNo() != null).map(AppSceneCostResultValue::getMarterialNo).collect(Collectors.toList());
361 438
         }
362 439
         Map<String, List<AppSceneCostProductProcessMaintenance>> processHoursMap = standardCostService.costMaterialProcessHoursService.getProcessHoursByMaterialNo(MarterialNoList);
363
-        for (AppSceneCostResultValue appSceneCostResultValue:list){
440
+        for (AppSceneCostResultValue appSceneCostResultValue : list) {
364 441
             double labor = 0;
365 442
             double equip = 0;
366 443
             double fuel = 0;
367 444
             double auxi = 0;
368 445
             double other = 0;
369 446
             if(processHoursMap.containsKey(appSceneCostResultValue.getMarterialNo())){
370
-                List<AppSceneCostProductProcessMaintenance> appSceneCostProductProcessMaintenances = processHoursMap.get(appSceneCostResultValue.getMarterialNo());
371
-                for (AppSceneCostProductProcessMaintenance pm:appSceneCostProductProcessMaintenances){
372
-                    String costcenter = pm.getCostCenterCode();
373
-                    if(mapHourRate.containsKey(costcenter)){
374
-                        AppSceneCostHourRate hourrate = mapHourRate.get(costcenter);
375
-                        labor+=hourrate.getLaborHourRate().doubleValue()*pm.getLaborHour().doubleValue();
376
-                        equip+=hourrate.getEquipHourRate().doubleValue()*pm.getMachineHour().doubleValue();
377
-                        fuel+=hourrate.getFuelHourRate().doubleValue()*pm.getBurningHour().doubleValue();
378
-                        auxi+=hourrate.getAuxiliaryHourRate().doubleValue()*pm.getAuxiliaryHour().doubleValue();
379
-                        other+=hourrate.getOtherHourRate().doubleValue()*pm.getOtherHour().doubleValue();
380
-                    }
381
-                }
447
+            List<AppSceneCostProductProcessMaintenance> appSceneCostProductProcessMaintenances = processHoursMap.get(appSceneCostResultValue.getMarterialNo());
448
+            for (AppSceneCostProductProcessMaintenance pm : appSceneCostProductProcessMaintenances) {
449
+                String costcenter = pm.getCostCenterCode();
450
+                //if(mapHourRate.containsKey(costcenter)){
451
+                AppSceneCostHourRate hourrate = mapHourRate.get(costcenter);
452
+//                        labor+=hourrate.getLaborHourRate().doubleValue()*pm.getLaborHour().doubleValue();
453
+//                        equip+=hourrate.getEquipHourRate().doubleValue()*pm.getMachineHour().doubleValue();
454
+//                        fuel+=hourrate.getFuelHourRate().doubleValue()*pm.getBurningHour().doubleValue();
455
+//                        auxi+=hourrate.getAuxiliaryHourRate().doubleValue()*pm.getAuxiliaryHour().doubleValue();
456
+//                        other+=hourrate.getOtherHourRate().doubleValue()*pm.getOtherHour().doubleValue();
457
+                labor += pm.getLaborHour().doubleValue();
458
+                equip += pm.getMachineHour().doubleValue();
459
+                fuel += pm.getBurningHour().doubleValue();
460
+                auxi += pm.getAuxiliaryHour().doubleValue();
461
+                other += pm.getOtherHour().doubleValue();
462
+                //}
463
+            }
382 464
             }
383 465
             AppSceneCostResultValue resultValue = AppSceneCostResultValue.builder()
384 466
                     .belongTopMaterialNo(topMaterialCode)
@@ -401,6 +483,12 @@ public class StandardCostService {
401 483
                     .manuType(appSceneCostResultValue.getManuType())
402 484
                     .depth(appSceneCostResultValue.getDepth())
403 485
                     .layer(appSceneCostResultValue.getLayer())
486
+                    .player(appSceneCostResultValue.getPlayer())
487
+                    .supplierName(appSceneCostResultValue.getSupplierName())
488
+                    .supplier(appSceneCostResultValue.getSupplier())
489
+                    .ekpoPrice(appSceneCostResultValue.getEkpoPrice())
490
+                    .invoicePrice(appSceneCostResultValue.getInvoicePrice())
491
+                    .werks(appSceneCostResultValue.getWerks())
404 492
                     .build();
405 493
             standardCostService.iAppSceneCostResultValueService.save(resultValue);
406 494
         }
@@ -623,7 +711,7 @@ public class StandardCostService {
623 711
      * @param flowInstanceId  流程实例id
624 712
      * @param costType        流程实例id
625 713
      */
626
-    public static void countStandardCostByTopMaterialCode(String topMaterialCode, String taskType, String taskCode, Integer flowInstanceId, String costType, String stage,String versionNumber) {
714
+    public static void countStandardCostByTopMaterialCode(String topMaterialCode, String taskType, String taskCode, Integer flowInstanceId, String costType, String stage, String versionNumber) {
627 715
         log.info("countStandardCostByTopMaterialCode");
628 716
         //1.查询出根物料编号对应的下所有的BOM信息结果值
629 717
         //List<AppSceneCostResultValue> list = standardCostService.iAppSceneCostResultValueService.getAllResultValueByTopMaterialNo(topMaterialCode, String.valueOf(flowInstanceId));
@@ -644,12 +732,22 @@ public class StandardCostService {
644 732
         ArrayList<Integer> deplist = new ArrayList<>(soredDepth);
645 733
         Collections.reverse(deplist);
646 734
 
647
-        List<AppSceneCostStandardResult> appSceneCostStandardResults=new ArrayList<>();
735
+        List<AppSceneCostStandardResult> appSceneCostStandardResults = new ArrayList<>();
736
+        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMM");
737
+
738
+        Set<String> matnrs = new HashSet<>();
739
+        Set<String> idnrks = new HashSet<>();
648 740
 
649 741
         //遍历根物料下所有的物料进行该物料本阶成本和费用类别的统计
650 742
         for (Integer depth : deplist) {
651 743
             List<AppSceneCostResultValue> appSceneCostResultValues = materialNoMap.get(depth);
652
-            for (AppSceneCostResultValue ascr:appSceneCostResultValues){
744
+            for (AppSceneCostResultValue ascr : appSceneCostResultValues) {
745
+                if(!matnrs.contains(ascr.getParentMarterialNo())){
746
+                    matnrs.add(ascr.getParentMarterialNo());
747
+                }
748
+                if(!idnrks.contains(ascr.getMarterialNo())){
749
+                    idnrks.add(ascr.getMarterialNo());
750
+                }
653 751
                 //BigDecimal currentCost = new BigDecimal("0.0");
654 752
                 //1.本阶物料成本
655 753
                 double materialCost = 0;
@@ -676,77 +774,327 @@ public class StandardCostService {
676 774
                 //12.本阶制造费(其他制造费用)
677 775
                 double otherCost_acc = 0;
678 776
 
679
-                if(ascr.getManuType().equals("F")){
680
-                    materialCost = ascr.getMaterial().doubleValue()*ascr.getNum().doubleValue();
681
-                }else if(ascr.getManuType().equals("E")){
777
+                double laborhour = 0;
778
+                double machinehour = 0;
779
+                double fuelhour = 0;
780
+                double auxihour = 0;
781
+                double otherhour = 0;
782
+                double laborhourTotal = 0;
783
+                double machinehourTotal = 0;
784
+                double fuelhourTotal = 0;
785
+                double auxihourTotal = 0;
786
+                double otherhourTotal = 0;
787
+                double laborcostTotal = 0;
788
+                double machinecostTotal = 0;
789
+                double fuelcostTotal = 0;
790
+                double auxicostTotal = 0;
791
+                double othercostTotal = 0;
792
+                if(ascr.getLayer().equals("12")){
793
+                    log.info("12");
794
+                }
795
+
796
+                if (ascr.getManuType().equals("F")) {
797
+                    materialCost = ascr.getMaterial().doubleValue() * ascr.getTopnum().doubleValue();
798
+                    materialCost_acc+=materialCost;
799
+                } else if ((ascr.getManuType().equals("E") || ascr.getManuType().equals("F30"))) {
682 800
                     double labor = ascr.getLabor().doubleValue();
683 801
                     double equip = ascr.getEquip().doubleValue();
684 802
                     double fuel = ascr.getFuel().doubleValue();
685 803
                     double auxi = ascr.getAuxi().doubleValue();
686 804
                     double other = ascr.getOther().doubleValue();
687
-                    laborCost = labor*ascr.getNum().doubleValue();
688
-                    equipmentCost =equip*ascr.getNum().doubleValue();
689
-                    fuelcost = fuel*ascr.getNum().doubleValue();
690
-                    auxicost = auxi*ascr.getNum().doubleValue();
691
-                    otherCost = other*ascr.getNum().doubleValue();
805
+                    materialCost = ascr.getMaterial().doubleValue()* ascr.getTopnum().doubleValue();;
806
+                    laborhour = labor * ascr.getTopnum().doubleValue()/60;
807
+                    machinehour = equip * ascr.getTopnum().doubleValue()/60;
808
+                    fuelhour = fuel * ascr.getTopnum().doubleValue()/60;
809
+                    auxihour = auxi * ascr.getTopnum().doubleValue()/60;
810
+                    otherhour = other * ascr.getTopnum().doubleValue()/60;
811
+
812
+                    laborCost = laborhour*0.82548;
813
+                    equipmentCost = machinehour*1.20312;
814
+                    fuelcost = fuelhour*0.17544;
815
+                    auxicost = auxihour*0.21342;
816
+                    otherCost = otherhour*0.77826;
817
+
818
+
819
+//                    if(ascr.getLayer().equals("0-15")){
820
+//                        log.info("Debug");
821
+//                    }
692 822
 
693
-                    for (AppSceneCostStandardResult child:appSceneCostStandardResults){
694
-                        if((Integer.parseInt(child.getLowOrderCode())==depth+1)&&child.getParentMatnr().equals(ascr.getMarterialNo())){
695
-                            if(child.getManuType().equals("F")){
696
-                                materialCost_acc+=child.getMaterialCostStage().doubleValue()*ascr.getNum().doubleValue();
697
-                            }else if(child.getManuType().equals("E")){
698
-                                materialCost_acc+=child.getMaterialCostStage().doubleValue()*ascr.getNum().doubleValue()+child.getMaterialCostAccumulated().doubleValue()*ascr.getNum().doubleValue();
699
-                                laborCost_acc+=(child.getLaborCostStage().doubleValue()+child.getLaborCostAccumulated().doubleValue())*ascr.getNum().doubleValue();
700
-                                equipmentCost_acc+=(child.getEquipCostStage().doubleValue()+child.getEquipCostAccumulated().doubleValue())*ascr.getNum().doubleValue();
701
-                                fuelcost_acc+=(child.getBurningCostStage().doubleValue()+child.getBurningCostAccumulated().doubleValue())*ascr.getNum().doubleValue();
702
-                                auxicost_acc+=(child.getAuxiliaryCostStage().doubleValue()+child.getAuxiliaryCostAccumulated().doubleValue())*ascr.getNum().doubleValue();
703
-                                otherCost_acc+=(child.getOtherCostStage().doubleValue()+child.getOtherCostAccumulated().doubleValue())*ascr.getNum().doubleValue();
823
+                    for (AppSceneCostStandardResult child : appSceneCostStandardResults) {
824
+                        String layer = child.getLayer();
825
+                        int index = layer.lastIndexOf(".");
826
+                        String player = "0";
827
+                        if(index!=-1){
828
+                            player = layer.substring(0,index);
829
+                        }
830
+                        if(player.equals(ascr.getLayer())){
831
+                            if (child.getManuType().equals("F")) {
832
+                                //materialCost_acc += child.getMaterialCostTotal().doubleValue() * ascr.getNum().doubleValue();
833
+                                materialCost_acc += child.getMaterialCostTotal().doubleValue() ;
834
+                            } else if ((child.getManuType().equals("E") || child.getManuType().equals("F30"))) {
835
+                                materialCost_acc += child.getMaterialCostTotal().doubleValue()  ;
836
+                                laborhourTotal += child.getLaborHourTotal().doubleValue() ;
837
+                                machinehourTotal += ( child.getEquipHourTotal().doubleValue()) ;
838
+                                fuelhourTotal += ( child.getFuelHourTotal().doubleValue()) ;
839
+                                auxihourTotal += ( child.getAuxiHourTotal().doubleValue()) ;
840
+                                otherhourTotal += (child.getOtherHourTotal().doubleValue()) ;
704 841
                             }
705 842
                         }
843
+//                        if ((Integer.parseInt(child.getLowOrderCode()) == depth + 1) && child.getParentMatnr().equals(ascr.getMarterialNo())) {
844
+//
845
+//                            if (child.getManuType().equals("F")) {
846
+//                                materialCost_acc += child.getMaterialCostTotal().doubleValue() * ascr.getNum().doubleValue();
847
+//                            } else if ((child.getManuType().equals("E") || child.getManuType().equals("F30"))) {
848
+//                                materialCost_acc += child.getMaterialCostTotal().doubleValue() * ascr.getNum().doubleValue() ;
849
+//                                laborhourTotal += child.getLaborHourTotal().doubleValue() * ascr.getNum().doubleValue();
850
+//                                machinehourTotal += ( child.getMachineHourTotal().doubleValue()) * ascr.getNum().doubleValue();
851
+//                                fuelhourTotal += ( child.getFuelHourTotal().doubleValue()) * ascr.getNum().doubleValue();
852
+//                                auxihourTotal += ( child.getAuxiHourTotal().doubleValue()) * ascr.getNum().doubleValue();
853
+//                                otherhourTotal += (child.getOtherHourTotal().doubleValue()) * ascr.getNum().doubleValue();
854
+//                            }
855
+//                        }
706 856
                     }
857
+                    laborhourTotal+=laborhour;
858
+                    machinehourTotal+=machinehour;
859
+                    fuelhourTotal+=fuelhour;
860
+                    auxihourTotal+=auxihour;
861
+                    otherhourTotal+=otherhour;
862
+
863
+                    laborcostTotal = laborhourTotal*0.82548;
864
+                    machinecostTotal = machinehourTotal*1.20312;
865
+                    fuelcostTotal = fuelhourTotal*0.17544;
866
+                    auxicostTotal = auxihourTotal*0.21342;
867
+                    othercostTotal = otherhourTotal*0.77826;
868
+
869
+                    materialCost_acc+=materialCost;
707 870
                 }
708 871
                 String maktx = "";
709
-                if(maktxMap.containsKey(ascr.getMarterialNo())){
710
-                    maktx=maktxMap.get(ascr.getMarterialNo());
872
+                if (maktxMap.containsKey(ascr.getMarterialNo())) {
873
+                    maktx = maktxMap.get(ascr.getMarterialNo());
711 874
                 }
712
-                AppSceneCostStandardResult appSceneCostStandardResult=AppSceneCostStandardResult.builder()
875
+                //if(ascr.getLayer().equals("0")){
876
+                //    materialCost = materialCost_acc;
877
+                //}
878
+                double standardCost = materialCost+laborCost+equipmentCost+fuelcost+auxicost+otherCost;
879
+                double total = materialCost_acc + laborcostTotal + machinecostTotal + fuelcostTotal + auxicostTotal + othercostTotal;
880
+                AppSceneCostStandardResult appSceneCostStandardResult = AppSceneCostStandardResult.builder()
713 881
                         .materialNumber(ascr.getMarterialNo())
714 882
                         .parentMatnr(ascr.getParentMarterialNo())
715 883
                         .pricetype(ascr.getPriceType())
716
-                        .materialCostStage(new BigDecimal(materialCost))
717
-                        .laborCostStage(new BigDecimal(laborCost))
718
-                        .equipCostStage(new BigDecimal(equipmentCost))
719
-                        .burningCostStage(new BigDecimal(fuelcost))
720
-                        .auxiliaryCostStage(new BigDecimal(auxicost))
721
-                        .otherCostStage(new BigDecimal(otherCost))
722
-                        .materialCostAccumulated(new BigDecimal(materialCost_acc))
723
-                        .laborCostAccumulated(new BigDecimal(laborCost_acc))
724
-                        .equipCostAccumulated(new BigDecimal(equipmentCost_acc))
725
-                        .burningCostAccumulated(new BigDecimal(fuelcost_acc))
726
-                        .auxiliaryCostAccumulated(new BigDecimal(auxicost_acc))
727
-                        .otherCostAccumulated(new BigDecimal(otherCost_acc))
728
-                        .materialCostTotal(new BigDecimal(materialCost+materialCost_acc))
729
-                        .laborCostTotal(new BigDecimal(laborCost+laborCost_acc))
730
-                        .equipCostTotal(new BigDecimal(equipmentCost+equipmentCost_acc))
731
-                        .burningCostTotal(new BigDecimal(fuelcost+fuelcost_acc))
732
-                        .auxiliaryCostTotal(new BigDecimal(auxicost+auxicost_acc))
733
-                        .otherCostTotal(new BigDecimal(otherCost+otherCost_acc))
734
-                        .totalStandardCost(new BigDecimal(materialCost+laborCost+equipmentCost+fuelcost+auxicost+otherCost+materialCost_acc+laborCost_acc+equipmentCost_acc+fuelcost_acc+auxicost_acc+otherCost_acc))
884
+                        .laborHour(new BigDecimal(laborhour))
885
+                        .equipHour(new BigDecimal(machinehour))
886
+                        .fuelHour(new BigDecimal(fuelhour))
887
+                        .auxiHour(new BigDecimal(auxihour))
888
+                        .otherHour(new BigDecimal(otherhour))
889
+                        .laborCost(new BigDecimal(laborCost))
890
+                        .equipCost(new BigDecimal(equipmentCost))
891
+                        .fuelCost(new BigDecimal(fuelcost))
892
+                        .auxiliaryCost(new BigDecimal(auxicost))
893
+                        .otherCost(new BigDecimal(otherCost))
894
+                        .laborHourTotal(new BigDecimal(laborhourTotal))
895
+                        .equipHourTotal(new BigDecimal(machinehourTotal))
896
+                        .fuelHourTotal(new BigDecimal(fuelhourTotal))
897
+                        .auxiHourTotal(new BigDecimal(auxihourTotal))
898
+                        .otherHourTotal(new BigDecimal(otherhourTotal))
899
+                        .standardCost(new BigDecimal(standardCost))
900
+                        .purchasePrice(new BigDecimal(ascr.getMaterial().doubleValue()))
901
+                        .materialCost(new BigDecimal(materialCost))
902
+                        .supplier(ascr.getSupplier())
903
+                        .supplierName(ascr.getSupplierName())
904
+                        .tempContractPrice(ascr.getEkpoPrice())
905
+                        .invoicePrice(ascr.getInvoicePrice())
906
+                        .invoiceTotal(ascr.getInvoicePrice().multiply(ascr.getTopnum()))
907
+                        .invoiceDiff(ascr.getInvoicePrice().multiply(ascr.getTopnum()).subtract(new BigDecimal(total)))
908
+                        //.materialCostStage(new BigDecimal(materialCost))
909
+//                        .laborCostStage(new BigDecimal(laborCost))
910
+//                        .equipCostStage(new BigDecimal(equipmentCost))
911
+//                        .burningCostStage(new BigDecimal(fuelcost))
912
+//                        .auxiliaryCostStage(new BigDecimal(auxicost))
913
+//                        .otherCostStage(new BigDecimal(otherCost))
914
+                        //.materialCostAccumulated(new BigDecimal(materialCost_acc))
915
+//                        .laborCostAccumulated(new BigDecimal(laborCost_acc))
916
+//                        .equipCostAccumulated(new BigDecimal(equipmentCost_acc))
917
+//                        .burningCostAccumulated(new BigDecimal(fuelcost_acc))
918
+//                        .auxiliaryCostAccumulated(new BigDecimal(auxicost_acc))
919
+//                        .otherCostAccumulated(new BigDecimal(otherCost_acc))
920
+                        .materialCostTotal(new BigDecimal(materialCost_acc))
921
+                        .laborCostTotal(new BigDecimal(laborcostTotal ))
922
+                        .equipCostTotal(new BigDecimal(machinecostTotal ))
923
+                        .fuelCostTotal(new BigDecimal(fuelcostTotal ))
924
+                        .auxiliaryCostTotal(new BigDecimal(auxicostTotal ))
925
+                        .otherCostTotal(new BigDecimal(othercostTotal ))
926
+                        .totalStandardCost(new BigDecimal(total))
735 927
                         .lowOrderCode(String.valueOf(depth))
736
-                        .relativeDosage(ascr.getNum())
928
+                        //.relativeDosage(ascr.getNum())
737 929
                         .createdTime(new Date())
738
-                        .menge(ascr.getNum())
930
+                        .menge(ascr.getTopnum())
739 931
                         .manuType(ascr.getManuType())
740 932
                         .versionNumber(versionNumber)
741 933
                         .stage(stage)
742 934
                         .layer(ascr.getLayer())
743
-                        .factory("7100")
935
+                        .player(ascr.getPlayer())
936
+                        .pricetype(ascr.getPlayer())
937
+                        .factory(ascr.getWerks())
744 938
                         .maktx(maktx)
939
+                        .ymonth(sdf.format(new Date()))
940
+                        .factory(ascr.getWerks())
745 941
                         .build();
746 942
                 appSceneCostStandardResults.add(appSceneCostStandardResult);
747 943
             }
748 944
         }
945
+        Collections.sort(appSceneCostStandardResults, new Comparator<AppSceneCostStandardResult>() {
946
+
947
+            public double convertlayertodouble(String layer){
948
+                String[] array = layer.split("\\.");
949
+                if(array.length==0){
950
+                    return Double.parseDouble(layer);
951
+                }else{
952
+                    double value = 0;
953
+                    for(int i=0;i<array.length;++i){
954
+                        value+=Double.parseDouble(array[i])*Math.pow(10.0,-i*3.0);
955
+                    }
956
+                    return value;
957
+                }
958
+            }
959
+            @Override
960
+            public int compare(AppSceneCostStandardResult o1, AppSceneCostStandardResult o2) {
961
+                double d1=convertlayertodouble(o1.getLayer());
962
+                double d2 = convertlayertodouble(o2.getLayer());
963
+                if(d1>d2){
964
+                    return 1;
965
+                }else{
966
+                    return -1;
967
+                }
968
+                //return Double.parseDouble(o1.getLayer())-Double.parseDouble(o2.getLayer());
969
+            }
970
+        });
749 971
         standardCostService.iAppSceneCostStandardResultService.saveBatch(appSceneCostStandardResults);
972
+
973
+        List<String> idnrklist = new ArrayList<>();
974
+        for (String matnr:idnrks){
975
+            idnrklist.add(matnr);
976
+        }
977
+        QueryWrapper<AppSceneCostMaterial> queryWrapper1=new QueryWrapper<>();
978
+        queryWrapper1.in("material_number",idnrklist);
979
+        List<AppSceneCostMaterial> materials=standardCostService.iAppSceneCostMaterialService.list(queryWrapper1);
980
+        Map<String,AppSceneCostMaterial> mapMaterial=new HashMap<>();
981
+        for (AppSceneCostMaterial material:materials){
982
+            if(!mapMaterial.containsKey(material.getMaterialNumber())){
983
+                mapMaterial.put(material.getMaterialNumber(),material);
984
+            }
985
+        }
986
+
987
+        List<String> matnrlist = new ArrayList<>();
988
+        for (String matnr:matnrs){
989
+            matnrlist.add(matnr);
990
+        }
991
+        //保存app_scene_cost_standard_bom
992
+        QueryWrapper<AppSceneCostBomRelevancy> queryWrapper=new QueryWrapper<>();
993
+        queryWrapper.in("matnr",matnrlist);
994
+        List<AppSceneCostBomRelevancy> appSceneCostBomRelevancies=standardCostService.iAppSceneCostBomRelevancyService.list(queryWrapper);
995
+        List<AppSceneCostStandardBom> standardBoms=new ArrayList<>();
996
+        for (AppSceneCostBomRelevancy bomRelevancy:appSceneCostBomRelevancies){
997
+            AppSceneCostStandardBom standardBom=AppSceneCostStandardBom.builder()
998
+                    .matnr(bomRelevancy.getMatnr())
999
+                    .versionNumber(versionNumber)
1000
+                    .posnr(bomRelevancy.getPosnr())
1001
+                    .werks(bomRelevancy.getWerks())
1002
+                    .bmeng(bomRelevancy.getBmeng())
1003
+                    .idnrk(bomRelevancy.getIdnrk())
1004
+                    .menge(bomRelevancy.getMenge())
1005
+                    .oldMaterialGroup("")
1006
+                    .manufacturingType("")
1007
+                    .sobsl("")
1008
+                    .productName("")
1009
+                    .materialType("")
1010
+                    .build();
1011
+            if(mapMaterial.containsKey(bomRelevancy.getIdnrk())){
1012
+                AppSceneCostMaterial material=mapMaterial.get(bomRelevancy.getIdnrk());
1013
+                standardBom.setOldMaterialGroup(material.getOldMaterialGroup());
1014
+                standardBom.setManufacturingType(material.getManufacturingType());
1015
+                standardBom.setSobsl(material.getSobsl());
1016
+                standardBom.setProductName(material.getProductName());
1017
+                standardBom.setMaterialType(material.getMaterialType());
1018
+            }
1019
+            standardBoms.add(standardBom);
1020
+        }
1021
+        standardCostService.iAppSceneCostStandardBomService.saveBatch(standardBoms);
1022
+
1023
+        List<AppSceneCostHourRate> hourRates=standardCostService.iHourRateService.list();
1024
+        Map<String,AppSceneCostHourRate> hourRateMap=new HashMap<>();
1025
+        for (AppSceneCostHourRate hourRate:hourRates){
1026
+            hourRateMap.put(hourRate.getCostCenterCode(),hourRate);
1027
+        }
1028
+
1029
+        //保存app_scene_cost_standard_productprocess
1030
+        QueryWrapper<AppSceneCostProductProcessMaintenance> queryWrapper2=new QueryWrapper<>();
1031
+        queryWrapper2.in("main_part_number",matnrlist);
1032
+        List<AppSceneCostProductProcessMaintenance> productProcessMaintenances=standardCostService.iAppSceneCostProductProcessMaintenanceService.list(queryWrapper2);
1033
+        List<AppSceneCostStandardProductprocess> standardProductprocesses=new ArrayList<>();
1034
+        for (AppSceneCostProductProcessMaintenance maintenance:productProcessMaintenances){
1035
+            AppSceneCostStandardProductprocess productprocess=AppSceneCostStandardProductprocess.builder()
1036
+                    .factory(maintenance.getFactory())
1037
+                    .mainPartNumber(maintenance.getMainPartNumber())
1038
+                    .processRouteNumber(maintenance.getProcessRouteNumber())
1039
+                    .serialNumber(maintenance.getSerialNumber())
1040
+                    .processName(maintenance.getProcessName())
1041
+                    .costCenterCode(maintenance.getCostCenterCode())
1042
+                    .prepareHour(maintenance.getPrepareHour())
1043
+                    .laborHour(maintenance.getLaborHour())
1044
+                    .machineHour(maintenance.getMachineHour())
1045
+                    .burningHour(maintenance.getBurningHour())
1046
+                    .auxiliaryHour(maintenance.getAuxiliaryHour())
1047
+                    .otherHour(maintenance.getOtherHour())
1048
+                    .versionNumber(versionNumber)
1049
+                    .build();
1050
+            if(hourRateMap.containsKey(maintenance.getCostCenterCode())){
1051
+                AppSceneCostHourRate hourRate=hourRateMap.get(maintenance.getCostCenterCode());
1052
+                productprocess.setLaborHourRate(hourRate.getLaborHourRate());
1053
+                productprocess.setEquipHourRate(hourRate.getEquipHourRate());
1054
+                productprocess.setFuelHourRate(hourRate.getFuelHourRate());
1055
+                productprocess.setAuxiliaryHourRate(hourRate.getAuxiliaryHourRate());
1056
+                productprocess.setOtherHourRate(hourRate.getOtherHourRate());
1057
+            }
1058
+            standardProductprocesses.add(productprocess);
1059
+        }
1060
+        standardCostService.iAppSceneCostStandardProductprocessService.saveBatch(standardProductprocesses);
1061
+
1062
+
1063
+        //更新标准成本计算状态
1064
+        if(appSceneCostStandardResults.size()>0){
1065
+            AppSceneCostStandardResult appSceneCostStandardResult = appSceneCostStandardResults.get(0);
1066
+
1067
+            QueryWrapper<AppSceneCostAufnrMatnr> wrapper=new QueryWrapper<>();
1068
+            wrapper.eq("matnr",appSceneCostStandardResult.getMaterialNumber());
1069
+            List<AppSceneCostAufnrMatnr> appSceneCostAufnrMatnrs=standardCostService.iAppSceneCostAufnrMatnrService.list(wrapper);
1070
+
1071
+
1072
+
1073
+            AppSceneCostCount appSceneCostCount = standardCostService.appSceneCostCountService.queryByVersion(appSceneCostStandardResult.getVersionNumber());
1074
+            if(appSceneCostCount!=null){
1075
+                appSceneCostCount.setStatus(2);
1076
+                appSceneCostCount.setStandardTotal(appSceneCostStandardResult.getTotalStandardCost());
1077
+                appSceneCostCount.setMaterialCost(appSceneCostStandardResult.getMaterialCostTotal());
1078
+                appSceneCostCount.setLaborCost(appSceneCostStandardResult.getLaborCostTotal());
1079
+                appSceneCostCount.setEquipCost(appSceneCostStandardResult.getEquipCostTotal());
1080
+                appSceneCostCount.setFuelCost(appSceneCostStandardResult.getFuelCostTotal());
1081
+                appSceneCostCount.setAuxiCost(appSceneCostStandardResult.getAuxiliaryCostTotal());
1082
+                appSceneCostCount.setOtherCost(appSceneCostStandardResult.getOtherCostTotal());
1083
+                appSceneCostCount.setLaborHour(appSceneCostStandardResult.getLaborHourTotal());
1084
+                appSceneCostCount.setMachineHour(appSceneCostStandardResult.getEquipHourTotal());
1085
+                appSceneCostCount.setFlowDefinitionId(flowInstanceId);
1086
+                appSceneCostCount.setCreateBy(0);
1087
+                appSceneCostCount.setUpdateBy(0);
1088
+                appSceneCostCount.setUpdateTime(new Date());
1089
+                appSceneCostCount.setAufnr("");
1090
+                appSceneCostCount.setMaktx(appSceneCostStandardResult.getMaktx());
1091
+                if(appSceneCostAufnrMatnrs.size()>0){
1092
+                    appSceneCostCount.setAufnr(appSceneCostAufnrMatnrs.get(0).getAufnr());
1093
+                }
1094
+                standardCostService.appSceneCostCountService.updateById(appSceneCostCount);
1095
+            }
1096
+        }
1097
+
750 1098
         //3.计算出所有的单个物料的累计标准成本
751 1099
         //List<AppSceneCostResultValue> standardCostList = standardCostService.iAppSceneCostResultValueService.getResultValueByTopMaterialNo(topMaterialCode, taskType, String.valueOf(flowInstanceId));
752 1100
         //【累计成本】的计算
@@ -984,18 +1332,18 @@ public class StandardCostService {
984 1332
 //                    .figureNumber()
985 1333
 //                        .dosage(oldAppSceneCostResultValue.getNum() != null ? oldAppSceneCostResultValue.getNum().doubleValue() : 0).unit(oldAppSceneCostResultValue.getUnit())
986 1334
                         .materialCostTotal(costDetailJson.getBigDecimal(FeeTypeEnum.MaterialCost.getCode()))
987
-                        .laborCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.LaborCost.getCode()))
988
-                        .equipCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.EquipmentFee.getCode()))
989
-                        .auxiliaryCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.SupplyMaterialFee.getCode()))
990
-                        .burningCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.DriverFee.getCode()))
991
-                        .otherCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.OtherFee.getCode()))
1335
+                        //.laborCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.LaborCost.getCode()))
1336
+                        //.equipCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.EquipmentFee.getCode()))
1337
+                        //.auxiliaryCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.SupplyMaterialFee.getCode()))
1338
+                        //.burningCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.DriverFee.getCode()))
1339
+                        //.otherCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.OtherFee.getCode()))
992 1340
                         .totalStandardCost(new BigDecimal(oldAppSceneCostResultValue.getCountValue()))
993
-                        .materialCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalMaterialCost.getCode()))
994
-                        .laborCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalLaborCost.getCode()))
995
-                        .equipCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalEquipmentFee.getCode()))
996
-                        .auxiliaryCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalSupplyMaterialFee.getCode()))
997
-                        .burningCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalDriverFee.getCode()))
998
-                        .otherCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalOtherFee.getCode()))
1341
+                        //.materialCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalMaterialCost.getCode()))
1342
+                        //.laborCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalLaborCost.getCode()))
1343
+                        //.equipCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalEquipmentFee.getCode()))
1344
+                        //.auxiliaryCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalSupplyMaterialFee.getCode()))
1345
+                        //.burningCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalDriverFee.getCode()))
1346
+                        //.otherCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalOtherFee.getCode()))
999 1347
                         .totalStandardCost(costDetailJson.getBigDecimal(TotalCostEnum.TotalStandardCost.getCode()))
1000 1348
                         .lowOrderCode(String.valueOf(oldAppSceneCostResultValue.getDepth()))
1001 1349
                         .createdTime(new Date()).build();

+ 204
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/webservice/RequestSapXmlData600.java Просмотреть файл

@@ -0,0 +1,204 @@
1
+package com.zzsmart.qomo.kn.cost.manage.plugin.webservice;
2
+
3
+import java.util.HashMap;
4
+
5
+public class RequestSapXmlData600 {
6
+
7
+    public static String getOrderState(HashMap map) {
8
+        StringBuilder sb = new StringBuilder();
9
+        sb.append("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:sap-com:document:sap:soap:functions:mc-style\">"
10
+
11
+                + "<soapenv:Header/>"
12
+                + "<soapenv:Body>"
13
+                + "<urn:ZsapDsj001>"
14
+                + "<IsInput>"
15
+                + "<Dest><DestId>PLM</DestId><BussTp>ZHA056_IFS003</BussTp><MessId></MessId><BussDoc></BussDoc><Status></Status><MessIdP></MessIdP><MessText></MessText><MessIdOs></MessIdOs><BussDocOs></BussDocOs><StatusOs></StatusOs></Dest>"
16
+                + "<Data>"
17
+                + "<IWerks>"
18
+                + map.get("werks").toString()
19
+                + "</IWerks>"
20
+                + "<IMatnr>"
21
+                + map.get("matnr").toString()
22
+                + "</IMatnr>"
23
+                + "<IPsPspPnr>"
24
+                + map.get("pspnr").toString()
25
+                + "</IPsPspPnr>"
26
+                + "<DateB>"
27
+                + map.get("dateb").toString()
28
+                + "</DateB>"
29
+                + "<DateE>"
30
+                + map.get("datee").toString()
31
+                + "</DateE>"
32
+                + "<Months>"
33
+                + map.get("months").toString()
34
+                + "</Months>"
35
+                + "</Data>"
36
+                + "</IsInput></urn:ZsapDsj001></soapenv:Body></soapenv:Envelope>");
37
+
38
+        return sb.toString().replaceAll("null", "");
39
+    }
40
+
41
+    public static String getDSJ002(HashMap map) {
42
+        StringBuilder sb = new StringBuilder();
43
+        //sb.append("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:sap-com:document:sap:rfc:functions\">"
44
+        sb.append("<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:urn=\"urn:sap-com:document:sap:rfc:functions\">"
45
+                + "<soap:Header/>"
46
+                + "<soap:Body>"
47
+                + "<urn:ZSAP_DSJ_002>"
48
+                + "<IS_INPUT>"
49
+                + "<Dest><DEST_ID>DSJ</DEST_ID><BUSS_TP>ZSAP_DSJ_002</BUSS_TP></Dest>"
50
+                + "<DATA>"
51
+                + "<WERKS>"
52
+                + map.get("werks").toString()
53
+                + "</WERKS>");
54
+                //+ "<MATNR><item>");
55
+        if (!map.get("matnr").toString().equals("")) {
56
+            sb.append("<MATNR><item><MATNR>"
57
+                    + map.get("matnr").toString()
58
+                    + "</MATNR></item></MATNR>");
59
+        }
60
+        if (!map.get("zthzq").toString().equals("")) {
61
+            sb.append("<ZTHZQ><item><ZTHZQ>"
62
+                    + map.get("zthzq").toString()
63
+                    + "</ZTHZQ></item></ZTHZQ>");
64
+        }
65
+        if (!map.get("matnr_l").toString().equals("")) {
66
+            sb.append("<MATNR_L><item><MATNR>"
67
+                    + map.get("matnr_l").toString()
68
+                    + "</MATNR></item></MATNR_L>");
69
+        }
70
+        if (!map.get("zthzq_l").toString().equals("")) {
71
+            sb.append("<ZTHZQ_L><item><ZTHZQ>"
72
+                    + map.get("zthzq_l").toString()
73
+                    + "</ZTHZQ></item></ZTHZQ_L>");
74
+        }
75
+//                +"<ZTHZQ>"
76
+//                +map.get("zthzq").toString()
77
+//                +"</ZTHZQ>"
78
+//                +"<MATNR_L>"
79
+//                +map.get("matnr_l").toString()
80
+//                +"</MATNR_L>"
81
+//                +"<ZTHZQ_L>"
82
+//                +map.get("zthzq_l").toString()
83
+//                +"</ZTHZQ_L>"
84
+        sb.append("</DATA>"
85
+                + "</IS_INPUT></urn:ZSAP_DSJ_002></soap:Body></soap:Envelope>");
86
+
87
+        return sb.toString().replaceAll("null", "");
88
+    }
89
+
90
+    public static String getDSJ003(HashMap map) {
91
+        StringBuilder sb = new StringBuilder();
92
+        //sb.append("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:sap-com:document:sap:rfc:functions\">"
93
+        sb.append("<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:urn=\"urn:sap-com:document:sap:rfc:functions\">"
94
+                + "<soap:Header/>"
95
+                + "<soap:Body>"
96
+                + "<urn:ZSAP_DSJ_003>"
97
+                + "<IS_INPUT>"
98
+                + "<Dest><DEST_ID>DSJ</DEST_ID><BUSS_TP>ZSAP_DSJ_003</BUSS_TP></Dest>"
99
+                + "<DATA>"
100
+                + "<MATNR>"
101
+                + map.get("matnr").toString()
102
+                + "</MATNR>"
103
+                + "<WERKS><item><WERKS>"
104
+                + map.get("werks").toString()
105
+                + "</WERKS></item></WERKS>"
106
+                + "</DATA>"
107
+                + "</IS_INPUT></urn:ZSAP_DSJ_003></soap:Body></soap:Envelope>");
108
+
109
+        return sb.toString().replaceAll("null", "");
110
+    }
111
+
112
+    public static String getDSJ004(HashMap map) {
113
+        StringBuilder sb = new StringBuilder();
114
+        //sb.append("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:sap-com:document:sap:rfc:functions\">"
115
+        sb.append("<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:urn=\"urn:sap-com:document:sap:rfc:functions\">"
116
+                + "<soap:Header/>"
117
+                + "<soap:Body>"
118
+                + "<urn:ZSAP_DSJ_004>"
119
+                + "<IS_INPUT>"
120
+                + "<Dest><DEST_ID>DSJ</DEST_ID><BUSS_TP>ZSAP_DSJ_004</BUSS_TP></Dest>"
121
+                + "<DATA>"
122
+//                + "<MATNR><item>"
123
+//                + map.get("matnr").toString()
124
+//                + "</MATNR>"
125
+                + "<WERKS><item><WERKS>"
126
+                + map.get("werks").toString()
127
+                + "</WERKS></item></WERKS>");
128
+//                + "</DATA>"
129
+//                + "</IS_INPUT></urn:ZSAP_DSJ_004></soapenv:Body></soapenv:Envelope>");
130
+        if (!map.get("matnr").toString().equals("")) {
131
+            sb.append("<MATNR><item><MATNR>"
132
+                    + map.get("matnr").toString()
133
+                    + "</MATNR></item></MATNR>");
134
+        }
135
+        if (!map.get("zthzq").toString().equals("")) {
136
+            sb.append("<ZZTHZQ><item><ZZTHZQ>"
137
+                    + map.get("zthzq").toString()
138
+                    + "</ZZTHZQ></item></ZZTHZQ>");
139
+        }
140
+        sb.append("</DATA>"
141
+                + "</IS_INPUT></urn:ZSAP_DSJ_004></soap:Body></soap:Envelope>");
142
+
143
+        return sb.toString().replaceAll("null", "");
144
+    }
145
+
146
+    public static String getPDM(HashMap map) {
147
+        StringBuilder sb = new StringBuilder();
148
+        sb.append("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:sap-com:document:sap:soap:functions:mc-style\">"
149
+        //sb.append("<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:urn=\"urn:sap-com:document:sap:rfc:functions\">"
150
+                + "<soapenv:Header/>"
151
+                + "<soapenv:Body>"
152
+                + "<urn:ZeccPdmMm015>"
153
+                + "<IBusexid>"
154
+                + map.get("matnr").toString()
155
+                + "</IBusexid>"
156
+                + "<IMatnr>"
157
+                + map.get("matnr").toString()
158
+                + "</IMatnr>"
159
+                + "<IWerks>"
160
+                + map.get("werks").toString()
161
+                + "</IWerks>"
162
+                + "<OLogTab><item><Busexid></Busexid><Msgty></Msgty><Msg></Msg><Resdate></Resdate><Restime></Restime><Resname></Resname></item></OLogTab>"
163
+                + "<OPdmTab>"
164
+                + "<item><Matnr></Matnr><Maktx></Maktx><Zzggxh></Zzggxh><Zzthzq></Zzthzq><Meins></Meins><Werks></Werks><Lgort></Lgort><Charg></Charg><Sobkz></Sobkz><Pspnr></Pspnr><Posid></Posid><Post1></Post1><Labst></Labst><Prlab></Prlab><Vprsv></Vprsv><Fnetpr></Fnetpr><Xnetpr></Xnetpr><Waers></Waers></item>"
165
+                + "</OPdmTab>"
166
+                + "</urn:ZeccPdmMm015></soapenv:Body></soapenv:Envelope>");
167
+
168
+        return sb.toString().replaceAll("null", "");
169
+    }
170
+
171
+    public static String getOrderState12(HashMap map) {
172
+        StringBuilder sb = new StringBuilder();
173
+        sb.append("<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:urn=\"urn:sap-com:document:sap:rfc:functions\">"
174
+
175
+                + "<soap:Header/>"
176
+                + "<soap:Body>"
177
+                + "<urn:ZSAP_DSJ_005>"
178
+                + "<IS_INPUT>"
179
+                +"<DEST><DEST_ID>PLM</DEST_ID><BUSS_TP>ZHA056_IFS003</BUSS_TP><MESS_ID></MESS_ID><BUSS_DOC></BUSS_DOC><STATUS></STATUS><MESS_ID_P></MESS_ID_P><MESS_TEXT></MESS_TEXT><MESS_ID_OS></MESS_ID_OS><BUSS_DOC_OS></BUSS_DOC_OS><STATUS_OS></STATUS_OS></DEST>"
180
+                + "<DATA>"
181
+                +"<I_WERKS>"
182
+                +map.get("werks").toString()
183
+                +"</I_WERKS>"
184
+                +"<I_MATNR>"
185
+                +map.get("matnr").toString()
186
+                +"</I_MATNR>"
187
+                +"<I_PS_PSP_PNR>"
188
+                +map.get("pspnr").toString()
189
+                +"</I_PS_PSP_PNR>"
190
+                + "<DATE_B>"
191
+                +map.get("dateb").toString()
192
+                + "</DATE_B>"
193
+                + "<DATE_E>"
194
+                +map.get("datee").toString()
195
+                + "</DATE_E>"
196
+                + "<MONTHS>"
197
+                +map.get("months").toString()
198
+                + "</MONTHS>"
199
+                + "</DATA>"
200
+                +"</IS_INPUT></urn:ZSAP_DSJ_005></soap:Body></soap:Envelope>");
201
+
202
+        return sb.toString().replaceAll("null", "");
203
+    }
204
+}

+ 13
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/webservice/SAPOrderService.java Просмотреть файл

@@ -0,0 +1,13 @@
1
+package com.zzsmart.qomo.kn.cost.manage.plugin.webservice;
2
+
3
+import java.util.HashMap;
4
+import java.util.Map;
5
+
6
+public interface SAPOrderService {
7
+    Map<String,Object> getOrderState(HashMap map, String url, String u, String p);
8
+    Map<String,Object> getPDM(HashMap map, String url, String u, String p);
9
+    Map<String,Object> getDSJ002(HashMap map, String url, String u, String p);
10
+    Map<String,Object> getDSJ003(HashMap map, String url, String u, String p);
11
+    Map<String,Object> getDSJ004(HashMap map, String url, String u, String p);
12
+    Map<String,Object> getOrderState12(HashMap map, String url, String u, String p);
13
+}

+ 576
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/webservice/SAPOrderServiceImpl.java Просмотреть файл

@@ -0,0 +1,576 @@
1
+package com.zzsmart.qomo.kn.cost.manage.plugin.webservice;
2
+
3
+import com.alibaba.fastjson.JSONArray;
4
+import com.alibaba.fastjson.JSONObject;
5
+//import com.sun.org.apache.xml.internal.serialize.OutputFormat;
6
+//import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
7
+import org.apache.commons.httpclient.HttpClient;
8
+import org.apache.commons.httpclient.methods.PostMethod;
9
+import org.apache.commons.httpclient.methods.RequestEntity;
10
+import org.apache.commons.httpclient.methods.StringRequestEntity;
11
+import org.dom4j.Attribute;
12
+import org.dom4j.DocumentException;
13
+import org.dom4j.DocumentHelper;
14
+import org.jdom2.Element;
15
+import org.w3c.dom.Document;
16
+import org.xml.sax.InputSource;
17
+
18
+import javax.xml.parsers.DocumentBuilder;
19
+import javax.xml.parsers.DocumentBuilderFactory;
20
+import java.io.StringReader;
21
+import java.util.HashMap;
22
+import java.util.List;
23
+import java.util.Map;
24
+
25
+public class SAPOrderServiceImpl implements SAPOrderService {
26
+    RequestSapXmlData600 request = new RequestSapXmlData600();
27
+
28
+    String url;
29
+
30
+    public SAPOrderServiceImpl(String url)
31
+    {
32
+        this.url = url;
33
+    }
34
+    public SAPOrderServiceImpl(){
35
+    }
36
+
37
+    //全局变量,判断是否输出请求响应报文信息;
38
+    public static boolean openXmlMessage = false;
39
+
40
+    /**
41
+     * 调用方法,控制是否输出请求响应报文;
42
+     * true为输出,false为不输出;
43
+     * @param open
44
+     */
45
+    public void printLog(boolean open)
46
+    {
47
+        openXmlMessage = open;
48
+    }
49
+
50
+    public boolean checkPrint(boolean checkinput){
51
+        return checkinput;
52
+    }
53
+    /**
54
+     * 用户名密码授权访问webservice规范
55
+     * 新增返回状态标识
56
+     * @param xml
57
+     * @param url
58
+     * @return
59
+     * @throws Exception
60
+     */
61
+    public static String getUPTSoapStreama(String xml,String url) {
62
+        try {
63
+            String soap = xml;
64
+            if (soap == null) {
65
+                return null;
66
+            }
67
+
68
+            HttpClient client = new HttpClient();
69
+            PostMethod postMethod = new PostMethod(url);
70
+            // 然后把Soap请求数据添加到PostMethod中
71
+            RequestEntity requestEntity = new StringRequestEntity(soap, "application/soap+xml", "UTF-8");
72
+            //设置请求头部,否则可能会报 “no SOAPAction header” 的错误
73
+            postMethod.setRequestHeader("SOAPAction","");
74
+            // 设置请求体
75
+            postMethod.setRequestEntity(requestEntity);
76
+            int status = client.executeMethod(postMethod);
77
+            return status+"";
78
+        } catch (Exception e) {
79
+            e.printStackTrace();
80
+            return null;
81
+        }
82
+    }
83
+
84
+    private static Document parseXmlFile(String in) {
85
+        try {
86
+            DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
87
+            DocumentBuilder db = dbf.newDocumentBuilder();
88
+            InputSource is = new InputSource(new StringReader(in));
89
+            return db.parse(is);
90
+        } catch (Exception e) {
91
+            e.printStackTrace();
92
+        }
93
+        return null;
94
+    }
95
+
96
+//    public static String xmlFormat(String unformattedXml) {
97
+//        try {
98
+//            Document document = parseXmlFile(unformattedXml);
99
+//            OutputFormat format = new OutputFormat(document);
100
+//            format.setLineWidth(65);
101
+//            format.setIndenting(true);
102
+//            format.setIndent(2);
103
+//            Writer out = new StringWriter();
104
+//            XMLSerializer serializer = new XMLSerializer(out, format);
105
+//            serializer.serialize(document);
106
+//            return (out.toString() +"").replace("\n","\r\n");
107
+//        } catch (Exception e) {
108
+//            e.printStackTrace();
109
+//        }
110
+//        return unformattedXml;
111
+//    }
112
+
113
+    public static String getServerName(String url) {
114
+        try{
115
+            return url.substring(url.indexOf("//") + 2, url.indexOf(":",url.indexOf("//")));
116
+        } catch	(Exception e){
117
+            e.printStackTrace();
118
+            return null;
119
+        }
120
+    }
121
+
122
+    public static boolean isEmpty(String str) {
123
+
124
+        if (str == null || str.trim().isEmpty() || "null".equals(str)) {
125
+            return true;
126
+        }
127
+        return false;
128
+    }
129
+
130
+    /**
131
+     * xml转json
132
+     * @param element
133
+     * @param json
134
+     */
135
+    public static void dom4j2Json(org.dom4j.Element element,JSONObject json){
136
+        //如果是属性
137
+        for(Object o:element.attributes()){
138
+            Attribute attr=(Attribute)o;
139
+            if(!isEmpty(attr.getValue())){
140
+                json.put("@"+attr.getName(), attr.getValue());
141
+            }
142
+        }
143
+        List<org.dom4j.Element> chdEl=element.elements();
144
+        if(chdEl.isEmpty()&&!isEmpty(element.getText())){//如果没有子元素,只有一个值
145
+            json.put(element.getName(), element.getText());
146
+        }
147
+
148
+        for(org.dom4j.Element e:chdEl){//有子元素
149
+            if(!e.elements().isEmpty()){//子元素也有子元素
150
+                JSONObject chdjson=new JSONObject();
151
+                dom4j2Json(e,chdjson);
152
+                Object o=json.get(e.getName());
153
+                if(o!=null){
154
+                    JSONArray jsona=null;
155
+                    if(o instanceof JSONObject){//如果此元素已存在,则转为jsonArray
156
+                        JSONObject jsono=(JSONObject)o;
157
+                        json.remove(e.getName());
158
+                        jsona=new JSONArray();
159
+                        jsona.add(jsono);
160
+                        jsona.add(chdjson);
161
+                    }
162
+                    if(o instanceof JSONArray){
163
+                        jsona=(JSONArray)o;
164
+                        jsona.add(chdjson);
165
+                    }
166
+                    json.put(e.getName(), jsona);
167
+                }else{
168
+                    if(!chdjson.isEmpty()){
169
+                        json.put(e.getName(), chdjson);
170
+                    }
171
+                }
172
+
173
+
174
+            }else{//子元素没有子元素
175
+                for(Object o:element.attributes()){
176
+                    Attribute attr=(Attribute)o;
177
+                    if(!isEmpty(attr.getValue())){
178
+                        json.put("@"+attr.getName(), attr.getValue());
179
+                    }
180
+                }
181
+                if(!e.getText().isEmpty()){
182
+                    json.put(e.getName(), e.getText());
183
+                }
184
+            }
185
+        }
186
+    }
187
+
188
+    public  JSONObject xml2Json(String xmlStr) throws DocumentException {
189
+        org.dom4j.Document doc= DocumentHelper.parseText(xmlStr);
190
+        JSONObject json=new JSONObject();
191
+        dom4j2Json(doc.getRootElement(), json);
192
+        return json;
193
+    }
194
+
195
+    @Override
196
+    public JSONObject getOrderState(HashMap hm, String url, String u, String p) {
197
+        // TODO Auto-generated method stub
198
+        String xml = request.getOrderState(hm);
199
+        //System.out.println(xml);
200
+        List<HashMap<String, String>> list = null;
201
+        SoapUtil util = new SoapUtil();
202
+
203
+        SoapResult soap = new SoapResult();
204
+        Element root = null;
205
+        String status = null,message = "";
206
+        Map map = null;
207
+        String[] out = null;
208
+        //System.out.println("try之前");
209
+        JSONObject json=new JSONObject();
210
+        try {
211
+//			FileUtil.TextToFile(new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss").format(new Date())+"=>105接口:\r\n");
212
+            //System.out.println("getUPSoapStream开始");
213
+            String functions="urn:sap-com:document:sap:soap:functions:mc-style:ZSAP_DSJ_005:ZsapDsj005Request";
214
+            soap = util.getUPSoapStream(xml, url,u,p,functions); //获取返回的报文;
215
+            //System.out.println("getUPSoapStream结束");
216
+            //System.out.println("响应报文:"+soap.getContent());
217
+
218
+
219
+            org.dom4j.Document doc= DocumentHelper.parseText(soap.getContent());
220
+            //JSONObject json=new JSONObject();
221
+            dom4j2Json(doc.getRootElement(),json);
222
+
223
+            //System.out.println(json.toString());
224
+            //String responsexml=soap.getContent().replace("<?xml version=\"1.0\" encoding=\"utf-8\"?>","");
225
+            //创建 XMLSerializer对象
226
+            //XMLSerializer xmlSerializer = new XMLSerializer();
227
+            //将xml转为json(注:如果是元素的属性,会在json里的key前加一个@标识)
228
+            //String result = xmlSerializer.read(responsexml).toString();
229
+            //输出json内容
230
+            //System.out.println(result);
231
+
232
+            //请求sap响应报文写入到日志文档中记录
233
+//			FileUtil.TextToFile(soap+"\r\n");
234
+
235
+            //解析响应报文,状态--返回报文信息
236
+//
237
+
238
+//            System.out.println("1:"+new Date());
239
+//            root = util.getRootElement(soap.getContent()); //获取报文xml的根节点
240
+//            //System.out.println(root);
241
+//            System.out.println("2:"+new Date());
242
+//
243
+//            System.out.println("3:"+new Date());
244
+//
245
+//            status = util.getKeyParse(root, "MSGTY");
246
+////            message = util.getKeyParse(root, "MSGTX");
247
+//            System.out.println("status__________"+status);
248
+//            if(status.equals("S")) {
249
+//                //代表获取成功,获取item里的值
250
+//                list = util.getListParse(root, "TOUDA", "item");
251
+//                System.out.println(list.size());
252
+//                //获取返回的报文列表信息
253
+//                if(list.size()>0)
254
+//                {
255
+//                    status = "S";
256
+//                    message = util.getKeyParse(root, "MSGTX");
257
+//                }else{
258
+//                    status = "E";
259
+//                    message = util.getKeyParse(root, "MSGTX");
260
+//                    System.out.println(message);
261
+//                }
262
+//            }else if(status.equals("E") ) {
263
+//                //代表获取失败,无法关闭的订单
264
+//                message = util.getKeyParse(root, "MSGTX");
265
+//            }
266
+//            System.out.println("4:"+new Date());
267
+            //message += "\r\n 请求报文:"+xml+"\r\n 响应报文:"+soap;
268
+
269
+        } catch (Exception e) {
270
+            // TODO Auto-generated catch block
271
+//			e.printStackTrace();
272
+            message += " 请求报文解析失败";
273
+        }
274
+
275
+        //输出请求响应报文
276
+        //if(openXmlMessage)
277
+        //{
278
+       //     message += "\r\n 请求报文:"+xml+"\r\n 响应报文:"+soap;
279
+       // }
280
+
281
+        //HashMap<String,Object> result = util.sendData(status, message, list, map);
282
+
283
+        return json;
284
+    }
285
+
286
+    @Override
287
+    public JSONObject getDSJ002(HashMap hm, String url, String u, String p) {
288
+        // TODO Auto-generated method stub
289
+        String xml = request.getDSJ002(hm);
290
+        System.out.println(xml);
291
+        List<HashMap<String, String>> list = null;
292
+        SoapUtil util = new SoapUtil();
293
+
294
+        SoapResult soap = new SoapResult();
295
+        Element root = null;
296
+        String status = null,message = "";
297
+        Map map = null;
298
+        String[] out = null;
299
+        //System.out.println("try之前");
300
+        JSONObject json=new JSONObject();
301
+        try {
302
+//			FileUtil.TextToFile(new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss").format(new Date())+"=>105接口:\r\n");
303
+            //System.out.println("getUPSoapStream开始");
304
+            String functions="urn:sap-com:document:sap:rfc:functions:ZSAP_DSJ_002:ZSAP_DSJ_002Request";
305
+            soap = util.getUPSoapStream(xml, url,u,p,functions); //获取返回的报文;
306
+            //System.out.println("getUPSoapStream结束");
307
+            System.out.println("响应报文:"+soap.getContent());
308
+
309
+
310
+            org.dom4j.Document doc= DocumentHelper.parseText(soap.getContent());
311
+            //JSONObject json=new JSONObject();
312
+            dom4j2Json(doc.getRootElement(),json);
313
+
314
+            //System.out.println(json.toString());
315
+            //String responsexml=soap.getContent().replace("<?xml version=\"1.0\" encoding=\"utf-8\"?>","");
316
+            //创建 XMLSerializer对象
317
+            //XMLSerializer xmlSerializer = new XMLSerializer();
318
+            //将xml转为json(注:如果是元素的属性,会在json里的key前加一个@标识)
319
+            //String result = xmlSerializer.read(responsexml).toString();
320
+            //输出json内容
321
+            //System.out.println(result);
322
+
323
+            //请求sap响应报文写入到日志文档中记录
324
+//			FileUtil.TextToFile(soap+"\r\n");
325
+
326
+            //解析响应报文,状态--返回报文信息
327
+//
328
+
329
+//            System.out.println("1:"+new Date());
330
+//            root = util.getRootElement(soap.getContent()); //获取报文xml的根节点
331
+//            //System.out.println(root);
332
+//            System.out.println("2:"+new Date());
333
+//
334
+//            System.out.println("3:"+new Date());
335
+//
336
+//            status = util.getKeyParse(root, "MSGTY");
337
+////            message = util.getKeyParse(root, "MSGTX");
338
+//            System.out.println("status__________"+status);
339
+//            if(status.equals("S")) {
340
+//                //代表获取成功,获取item里的值
341
+//                list = util.getListParse(root, "TOUDA", "item");
342
+//                System.out.println(list.size());
343
+//                //获取返回的报文列表信息
344
+//                if(list.size()>0)
345
+//                {
346
+//                    status = "S";
347
+//                    message = util.getKeyParse(root, "MSGTX");
348
+//                }else{
349
+//                    status = "E";
350
+//                    message = util.getKeyParse(root, "MSGTX");
351
+//                    System.out.println(message);
352
+//                }
353
+//            }else if(status.equals("E") ) {
354
+//                //代表获取失败,无法关闭的订单
355
+//                message = util.getKeyParse(root, "MSGTX");
356
+//            }
357
+//            System.out.println("4:"+new Date());
358
+            //message += "\r\n 请求报文:"+xml+"\r\n 响应报文:"+soap;
359
+
360
+        } catch (Exception e) {
361
+            // TODO Auto-generated catch block
362
+//			e.printStackTrace();
363
+            message += " 请求报文解析失败";
364
+        }
365
+
366
+        //输出请求响应报文
367
+        //if(openXmlMessage)
368
+        //{
369
+        //     message += "\r\n 请求报文:"+xml+"\r\n 响应报文:"+soap;
370
+        // }
371
+
372
+        //HashMap<String,Object> result = util.sendData(status, message, list, map);
373
+
374
+        return json;
375
+    }
376
+
377
+    @Override
378
+    public JSONObject getPDM(HashMap hm, String url, String u, String p){
379
+        // TODO Auto-generated method stub
380
+        String xml = request.getPDM(hm);
381
+        System.out.println(xml);
382
+        List<HashMap<String, String>> list = null;
383
+        SoapUtil util = new SoapUtil();
384
+
385
+        SoapResult soap = new SoapResult();
386
+        Element root = null;
387
+        String status = null,message = "";
388
+        Map map = null;
389
+        String[] out = null;
390
+        //System.out.println("try之前");
391
+        JSONObject json=new JSONObject();
392
+        try {
393
+            String functions="urn:sap-com:document:sap:soap:functions:mc-style:ZECC_PDM_MM015:ZeccPdmMm015Request";
394
+            soap = util.getUPSoapStream(xml, url,u,p,functions); //获取返回的报文;
395
+            System.out.println("响应报文:"+soap.getContent());
396
+
397
+
398
+            org.dom4j.Document doc= DocumentHelper.parseText(soap.getContent());
399
+            //JSONObject json=new JSONObject();
400
+            dom4j2Json(doc.getRootElement(),json);
401
+
402
+        } catch (Exception e) {
403
+            // TODO Auto-generated catch block
404
+//			e.printStackTrace();
405
+            message += " 请求报文解析失败";
406
+        }
407
+
408
+
409
+
410
+        return json;
411
+    }
412
+
413
+    @Override
414
+    public JSONObject getDSJ003(HashMap hm, String url, String u, String p){
415
+        // TODO Auto-generated method stub
416
+        String xml = request.getDSJ003(hm);
417
+        System.out.println(xml);
418
+        List<HashMap<String, String>> list = null;
419
+        SoapUtil util = new SoapUtil();
420
+
421
+        SoapResult soap = new SoapResult();
422
+        Element root = null;
423
+        String status = null,message = "";
424
+        Map map = null;
425
+        String[] out = null;
426
+        //System.out.println("try之前");
427
+        JSONObject json=new JSONObject();
428
+        try {
429
+            String functions="urn:sap-com:document:sap:rfc:functions:ZSAP_DSJ_003:ZSAP_DSJ_003Request";
430
+            soap = util.getUPSoapStream(xml, url,u,p,functions); //获取返回的报文;
431
+            System.out.println("响应报文:"+soap.getContent());
432
+
433
+
434
+            org.dom4j.Document doc= DocumentHelper.parseText(soap.getContent());
435
+            //JSONObject json=new JSONObject();
436
+            dom4j2Json(doc.getRootElement(),json);
437
+
438
+        } catch (Exception e) {
439
+            // TODO Auto-generated catch block
440
+//			e.printStackTrace();
441
+            message += " 请求报文解析失败";
442
+        }
443
+
444
+
445
+
446
+        return json;
447
+    }
448
+
449
+    @Override
450
+    public JSONObject getDSJ004(HashMap hm, String url, String u, String p){
451
+        // TODO Auto-generated method stub
452
+        String xml = request.getDSJ004(hm);
453
+        System.out.println(xml);
454
+        List<HashMap<String, String>> list = null;
455
+        SoapUtil util = new SoapUtil();
456
+
457
+        SoapResult soap = new SoapResult();
458
+        Element root = null;
459
+        String status = null,message = "";
460
+        Map map = null;
461
+        String[] out = null;
462
+        //System.out.println("try之前");
463
+        JSONObject json=new JSONObject();
464
+        try {
465
+            String functions="urn:sap-com:document:sap:rfc:functions:ZSAP_DSJ_004:ZSAP_DSJ_004Request";
466
+            soap = util.getUPSoapStream(xml, url,u,p,functions); //获取返回的报文;
467
+            System.out.println("响应报文:"+soap.getContent());
468
+
469
+
470
+            org.dom4j.Document doc= DocumentHelper.parseText(soap.getContent());
471
+            //JSONObject json=new JSONObject();
472
+            dom4j2Json(doc.getRootElement(),json);
473
+
474
+        } catch (Exception e) {
475
+            // TODO Auto-generated catch block
476
+//			e.printStackTrace();
477
+            message += " 请求报文解析失败";
478
+        }
479
+
480
+
481
+
482
+        return json;
483
+    }
484
+
485
+    @Override
486
+    public JSONObject getOrderState12(HashMap hm, String url, String u, String p) {
487
+        // TODO Auto-generated method stub
488
+        String xml = request.getOrderState12(hm);
489
+        //System.out.println(xml);
490
+        List<HashMap<String, String>> list = null;
491
+        SoapUtil util = new SoapUtil();
492
+
493
+        SoapResult soap = new SoapResult();
494
+        Element root = null;
495
+        String status = null,message = "";
496
+        Map map = null;
497
+        String[] out = null;
498
+        //System.out.println("try之前");
499
+        JSONObject json=new JSONObject();
500
+        try {
501
+//			FileUtil.TextToFile(new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss").format(new Date())+"=>105接口:\r\n");
502
+            //System.out.println("getUPSoapStream开始");
503
+            String functions="urn:sap-com:document:sap:soap:functions:mc-style:ZSAP_DSJ_005:ZsapDsj005Request";
504
+            soap = util.getUPSoapStream(xml, url,u,p,functions); //获取返回的报文;
505
+            //System.out.println("getUPSoapStream结束");
506
+            //System.out.println("响应报文:"+soap.getContent());
507
+
508
+
509
+            org.dom4j.Document doc= DocumentHelper.parseText(soap.getContent());
510
+            //JSONObject json=new JSONObject();
511
+            dom4j2Json(doc.getRootElement(),json);
512
+
513
+            //System.out.println(json.toString());
514
+            //String responsexml=soap.getContent().replace("<?xml version=\"1.0\" encoding=\"utf-8\"?>","");
515
+            //创建 XMLSerializer对象
516
+            //XMLSerializer xmlSerializer = new XMLSerializer();
517
+            //将xml转为json(注:如果是元素的属性,会在json里的key前加一个@标识)
518
+            //String result = xmlSerializer.read(responsexml).toString();
519
+            //输出json内容
520
+            //System.out.println(result);
521
+
522
+            //请求sap响应报文写入到日志文档中记录
523
+//			FileUtil.TextToFile(soap+"\r\n");
524
+
525
+            //解析响应报文,状态--返回报文信息
526
+//
527
+
528
+//            System.out.println("1:"+new Date());
529
+//            root = util.getRootElement(soap.getContent()); //获取报文xml的根节点
530
+//            //System.out.println(root);
531
+//            System.out.println("2:"+new Date());
532
+//
533
+//            System.out.println("3:"+new Date());
534
+//
535
+//            status = util.getKeyParse(root, "MSGTY");
536
+////            message = util.getKeyParse(root, "MSGTX");
537
+//            System.out.println("status__________"+status);
538
+//            if(status.equals("S")) {
539
+//                //代表获取成功,获取item里的值
540
+//                list = util.getListParse(root, "TOUDA", "item");
541
+//                System.out.println(list.size());
542
+//                //获取返回的报文列表信息
543
+//                if(list.size()>0)
544
+//                {
545
+//                    status = "S";
546
+//                    message = util.getKeyParse(root, "MSGTX");
547
+//                }else{
548
+//                    status = "E";
549
+//                    message = util.getKeyParse(root, "MSGTX");
550
+//                    System.out.println(message);
551
+//                }
552
+//            }else if(status.equals("E") ) {
553
+//                //代表获取失败,无法关闭的订单
554
+//                message = util.getKeyParse(root, "MSGTX");
555
+//            }
556
+//            System.out.println("4:"+new Date());
557
+            //message += "\r\n 请求报文:"+xml+"\r\n 响应报文:"+soap;
558
+
559
+        } catch (Exception e) {
560
+            // TODO Auto-generated catch block
561
+//			e.printStackTrace();
562
+            message += " 请求报文解析失败";
563
+        }
564
+
565
+        //输出请求响应报文
566
+        //if(openXmlMessage)
567
+        //{
568
+        //     message += "\r\n 请求报文:"+xml+"\r\n 响应报文:"+soap;
569
+        // }
570
+
571
+        //HashMap<String,Object> result = util.sendData(status, message, list, map);
572
+
573
+        return json;
574
+    }
575
+
576
+}

+ 23
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/webservice/SoapResult.java Просмотреть файл

@@ -0,0 +1,23 @@
1
+package com.zzsmart.qomo.kn.cost.manage.plugin.webservice;
2
+
3
+public class SoapResult {
4
+    private String status;
5
+    private String content;
6
+
7
+    public String getStatus() {
8
+        return status;
9
+    }
10
+
11
+    public void setStatus(String status) {
12
+        this.status = status;
13
+    }
14
+
15
+    public String getContent() {
16
+        return content;
17
+    }
18
+
19
+    public void setContent(String content) {
20
+        this.content = content;
21
+    }
22
+}
23
+

+ 452
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/webservice/SoapUtil.java Просмотреть файл

@@ -0,0 +1,452 @@
1
+package com.zzsmart.qomo.kn.cost.manage.plugin.webservice;
2
+
3
+import org.apache.commons.httpclient.DefaultHttpMethodRetryHandler;
4
+import org.apache.commons.httpclient.HttpClient;
5
+import org.apache.commons.httpclient.UsernamePasswordCredentials;
6
+import org.apache.commons.httpclient.auth.AuthScope;
7
+import org.apache.commons.httpclient.methods.PostMethod;
8
+import org.apache.commons.httpclient.methods.StringRequestEntity;
9
+import org.apache.commons.httpclient.params.HttpMethodParams;
10
+import org.apache.commons.httpclient.methods.RequestEntity;
11
+import org.xml.sax.InputSource;
12
+import org.jdom2.Document;
13
+import org.jdom2.Element;
14
+import org.jdom2.JDOMException;
15
+import org.jdom2.input.SAXBuilder;
16
+import java.io.*;
17
+import java.util.*;
18
+
19
+public class SoapUtil {
20
+
21
+    //public static String responseXml;
22
+    /**
23
+     * 获取SOAP的请求头,并替换其中的标志符号为用户输入的城市
24
+     *
25
+     * @return 客户将要发送给服务器的SOAP请求
26
+     */
27
+    private static String getSoapRequest() {
28
+        StringBuilder sb = new StringBuilder();
29
+        sb.append("<?xml version=\"1.0\" encoding=\"utf-8\"?>"
30
+                + "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hror=\"hrorg\">"
31
+                + "<soapenv:Header/>"
32
+                + "<soapenv:Body>"
33
+                + "<hror:getOrgcrude_jidian/>"
34
+                + "</soapenv:Body>"
35
+                + "</soapenv:Envelope>");
36
+        return sb.toString();
37
+    }
38
+
39
+    /**
40
+     * 测试用户名密码密码授权访问webservice规范
41
+     * @param wsdl
42
+     * @param xml
43
+     * @return
44
+     * @throws Exception
45
+     */
46
+    public SoapResult getUPSoapInputStream(String wsdl, String xml){
47
+        SoapResult result=new SoapResult();
48
+        try {
49
+            String soap = xml;
50
+            if (soap == null) {
51
+                return result;
52
+            }
53
+            int timeout = 1000000;
54
+
55
+            HttpClient client = new HttpClient();
56
+            PostMethod postMethod = new PostMethod(wsdl);
57
+            // 设置连接超时
58
+            client.getHttpConnectionManager().getParams().setConnectionTimeout(timeout);
59
+            client.getState().setCredentials(AuthScope.ANY,new UsernamePasswordCredentials("SAP_MES", "q123456789"));
60
+            // 设置读取时间超时
61
+            client.getHttpConnectionManager().getParams().setSoTimeout(timeout);
62
+            //设置HTTP请求超时时不进行自动重发
63
+            client.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(0,false));
64
+            // 然后把Soap请求数据添加到PostMethod中
65
+            RequestEntity requestEntity = new StringRequestEntity(soap, "application/soap+xml", "UTF-8");
66
+            //设置请求头部,否则可能会报 “no SOAPAction header” 的错误
67
+            postMethod.setRequestHeader("SOAPAction","");
68
+            // 设置请求体
69
+            postMethod.setRequestEntity(requestEntity);
70
+            int status = client.executeMethod(postMethod);
71
+            // 打印请求状态码
72
+            //System.out.println("status:" + status);
73
+            // 获取响应体输入流
74
+            //String soapResponseInfo = postMethod.getResponseBodyAsString();
75
+
76
+            // 获取响应体输入流
77
+            InputStream is = postMethod.getResponseBodyAsStream();
78
+            // 获取请求结果字符串
79
+            //InputStreamReader inputStreamReader = new InputStreamReader(is);
80
+            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
81
+
82
+            String responseLine = "";
83
+            String soapResponseInfo = "";
84
+            while((responseLine = bufferedReader.readLine()) != null) {
85
+                soapResponseInfo = soapResponseInfo + responseLine ;
86
+            }
87
+            result.setStatus(status + "");
88
+            result.setContent(soapResponseInfo);
89
+
90
+            return result;
91
+        } catch (Exception e) {
92
+            e.printStackTrace();
93
+            result.setContent(e.getMessage());
94
+            return result;
95
+        }
96
+    }
97
+
98
+
99
+    /**
100
+     * 用户名密码授权访问webservice规范
101
+     * 新增返回状态标识
102
+     * @param xml
103
+     * @return
104
+     * @throws Exception
105
+     */
106
+    public SoapResult getUPTSoapStream(String xml, String url, String u, String p) {
107
+        SoapResult result = new SoapResult();
108
+        try {
109
+            String soap = xml;
110
+            if (soap == null) {
111
+                return result;
112
+            }
113
+            int timeout = 1000000;
114
+
115
+            HttpClient client = new HttpClient();
116
+            PostMethod postMethod = new PostMethod(url);
117
+            // 设置连接超时
118
+            client.getHttpConnectionManager().getParams().setConnectionTimeout(timeout);
119
+            client.getState().setCredentials(AuthScope.ANY,new UsernamePasswordCredentials(u,p));
120
+            //设置HTTP请求超时时不进行自动重发
121
+            client.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(0,false));
122
+            // 设置读取时间超时
123
+            client.getHttpConnectionManager().getParams().setSoTimeout(timeout);
124
+            // 然后把Soap请求数据添加到PostMethod中
125
+            RequestEntity requestEntity = new StringRequestEntity(soap, "application/soap+xml", "UTF-8");
126
+            //设置请求头部,否则可能会报 “no SOAPAction header” 的错误
127
+            postMethod.setRequestHeader("SOAPAction","");
128
+            // 设置请求体
129
+            postMethod.setRequestEntity(requestEntity);
130
+            int status = client.executeMethod(postMethod);
131
+            // 打印请求状态码
132
+            System.out.println("status:" + status);
133
+            // 获取响应体输入流
134
+            //String soapResponseInfo = postMethod.getResponseBodyAsString();
135
+
136
+            // 获取响应体输入流
137
+            InputStream is = postMethod.getResponseBodyAsStream();
138
+            // 获取请求结果字符串
139
+            //InputStreamReader inputStreamReader = new InputStreamReader(is);
140
+            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
141
+
142
+            String responseLine = "";
143
+            String soapResponseInfo = "";
144
+            while((responseLine = bufferedReader.readLine()) != null) {
145
+                soapResponseInfo = soapResponseInfo + responseLine ;
146
+            }
147
+            System.out.println("return:" +  new Date());
148
+            result.setStatus(status +"");
149
+            result.setContent(soapResponseInfo);
150
+            return result;
151
+        } catch (Exception e) {
152
+            e.printStackTrace();
153
+            result.setContent(e.getMessage());
154
+            return result;
155
+        }
156
+    }
157
+
158
+    /**
159
+     * 用户名密码授权访问webservice规范
160
+     * @param xml
161
+     * @return
162
+     */
163
+    public SoapResult getUPSoapStream(String xml, String url, String u, String p,String functions) {
164
+        SoapResult result = new SoapResult();
165
+        try {
166
+            String soap = xml;
167
+            if (soap == null) {
168
+                return result;
169
+            }
170
+            int timeout = 1000000;
171
+
172
+            HttpClient client = new HttpClient();
173
+            PostMethod postMethod = new PostMethod(url);
174
+            // 设置连接超时
175
+            client.getHttpConnectionManager().getParams().setConnectionTimeout(timeout);
176
+            client.getState().setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(u, p));
177
+            //if(!u.equals("")) {
178
+            //    client.getState().setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(u, p));
179
+            //}
180
+            //设置HTTP请求超时时不进行自动重发
181
+            client.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(0,false));
182
+
183
+            // 设置读取时间超时
184
+            client.getHttpConnectionManager().getParams().setSoTimeout(timeout);
185
+            // 然后把Soap请求数据添加到PostMethod中
186
+            String contentType="text/xml";
187
+            //String contentType="application/soap+xml;charset=UTF-8;action=\"urn:sap-com:document:sap:soap:functions:mc-style:ZSAP_DSJ_001:ZsapDsj001Request\"";
188
+            RequestEntity requestEntity = new StringRequestEntity(soap, contentType, "UTF-8");
189
+            //设置请求头部,否则可能会报 “no SOAPAction header” 的错误
190
+            //postMethod.setRequestHeader("SOAPAction","urn:sap-com:document:sap:soap:functions:mc-style:ZSAP_DSJ_001:ZsapDsj001Request");
191
+            postMethod.setRequestHeader("SOAPAction",functions);
192
+
193
+
194
+            System.out.println(requestEntity);
195
+            // 设置请求体
196
+            postMethod.setRequestEntity(requestEntity);
197
+            int status = client.executeMethod(postMethod);
198
+            // 打印请求状态码
199
+            System.out.println("status:" + status);
200
+            // 获取响应体输入流
201
+            //String soapResponseInfo = postMethod.getResponseBodyAsString();
202
+
203
+            // 获取响应体输入流
204
+            InputStream is = postMethod.getResponseBodyAsStream();
205
+            // 获取请求结果字符串
206
+            //InputStreamReader inputStreamReader = new InputStreamReader(is);
207
+            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
208
+
209
+            String responseLine = "";
210
+            String soapResponseInfo = "";
211
+            while((responseLine = bufferedReader.readLine()) != null) {
212
+                soapResponseInfo = soapResponseInfo + responseLine ;
213
+            }
214
+            result.setStatus(status + "");
215
+            result.setContent(soapResponseInfo);
216
+
217
+            return result;
218
+        } catch (Exception e) {
219
+            e.printStackTrace();
220
+            result.setContent(e.getMessage());
221
+            return result;
222
+        }
223
+    }
224
+
225
+    /**
226
+     * 用户把SOAP请求发送给服务器端,并返回服务器点返回的输入流数据
227
+     * @param wsdl 服务器的wsdl地址
228
+     * @param xml 请求的报文信息
229
+     * @return 服务器端返回的输入流,供客户端读取
230
+     * @throws Exception
231
+     */
232
+    public SoapResult getSoapInputStream(String wsdl, String xml) {
233
+        SoapResult result = new SoapResult();
234
+        try {
235
+            String soap = xml;
236
+            if (soap == null) {
237
+                return result;
238
+            }
239
+            int timeout = 100000;
240
+
241
+            HttpClient client = new HttpClient();
242
+            PostMethod postMethod = new PostMethod(wsdl);
243
+            // 设置连接超时
244
+            client.getHttpConnectionManager().getParams().setConnectionTimeout(timeout);
245
+            client.getState().setCredentials(AuthScope.ANY,new UsernamePasswordCredentials("ESB_MES","q123456789"));
246
+            //设置HTTP请求超时时不进行自动重发
247
+            client.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(0,false));
248
+            // 设置读取时间超时
249
+            client.getHttpConnectionManager().getParams().setSoTimeout(timeout);
250
+//            client.getHttpConnectionManager().getParams().setParameter("Name", "LP02");
251
+            // 然后把Soap请求数据添加到PostMethod中
252
+            RequestEntity requestEntity = new StringRequestEntity(soap, "application/soap+xml", "UTF-8");
253
+            //设置请求头部,否则可能会报 “no SOAPAction header” 的错误
254
+            postMethod.setRequestHeader("SOAPAction","");
255
+//            postMethod.setRequestHeader("SOAPAction","");
256
+//            postMethod.setRequestHeader("Binding","LP02");
257
+            // 设置请求体
258
+            postMethod.setRequestEntity(requestEntity);
259
+            int status = client.executeMethod(postMethod);
260
+            // 打印请求状态码
261
+            //System.out.println("status:" + status);
262
+            // 获取响应体输入流
263
+            //String soapResponseInfo = postMethod.getResponseBodyAsString();
264
+
265
+            // 获取响应体输入流
266
+            InputStream is = postMethod.getResponseBodyAsStream();
267
+            // 获取请求结果字符串
268
+            //InputStreamReader inputStreamReader = new InputStreamReader(is);
269
+            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
270
+
271
+            String responseLine = "";
272
+            String soapResponseInfo = "";
273
+            while((responseLine = bufferedReader.readLine()) != null) {
274
+                soapResponseInfo = soapResponseInfo + responseLine ;
275
+            }
276
+            result.setStatus(status+"");
277
+            result.setContent(soapResponseInfo);
278
+            return result;
279
+        } catch (Exception e) {
280
+            e.printStackTrace();
281
+            result.setContent(e.getMessage());
282
+            return result;
283
+        }
284
+    }
285
+
286
+
287
+    /**
288
+     * 通过返回的报文数据解析获取xml根节点
289
+     * @param xml 返回的报文xml
290
+     * @return
291
+     * @throws JDOMException
292
+     * @throws IOException
293
+     */
294
+    public Element getRootElement(String xml) throws JDOMException, IOException {
295
+        StringReader read = new StringReader(xml);
296
+        //创建新的输入源SAX 解析器将使用 InputSource 对象来确定如何读取 XML 输入
297
+        InputSource source = new InputSource(read);
298
+        SAXBuilder builder=new SAXBuilder(false);
299
+
300
+        Document doc=builder.build(source);
301
+        Element root = doc.getRootElement();
302
+        return root;
303
+    }
304
+
305
+    /**
306
+     * 通过父节点NODE值,获取子级NODE节点的List<HashMap<>>列表
307
+     * @param root 解析的文档xml根节点
308
+     * @param node 父节点标签值
309
+     * @param slist list子节点标签值
310
+     * @return List<HashMap<String,String>>
311
+     * @throws Exception
312
+     */
313
+    public List<HashMap<String,String>> getListParse(Element root,String node,String slist) throws Exception{
314
+        //返回的列表定义
315
+        List<HashMap<String,String>> alist = new ArrayList<HashMap<String,String>>();
316
+
317
+        //返回指定节点的标签Element值
318
+        Element name = getNodeElement(root,node);
319
+//		System.out.println("指定节点的值:"+name);
320
+
321
+        List booklist=name.getChildren(slist);
322
+//		List booklist=name.getChildren();
323
+//		System.out.println("指定节点的值11:"+booklist);
324
+        for (Iterator iter = booklist.iterator(); iter.hasNext();) {
325
+            Element book = (Element) iter.next();
326
+            List<Element> list = book.getChildren();
327
+            HashMap<String,String> map = new HashMap<String,String>();
328
+            for(Element child : list)
329
+            {
330
+                map.put(child.getName(), child.getTextTrim());
331
+            }
332
+            alist.add(map);
333
+        }
334
+//		System.out.println("获取数据行数:"+booklist.size());
335
+
336
+        return alist;
337
+    }
338
+
339
+
340
+    /**
341
+     * 通过父节点NODE值,获取子级NODE节点的List<HashMap<>>列表
342
+     * @param root 解析的文档xml根节点
343
+     * @param node 父节点标签值
344
+     * @param slist list子节点标签值
345
+     * @return List<HashMap<String,String>>
346
+     * @throws Exception
347
+     */
348
+    public List<HashMap<String,String>> getListBarcode(Element root,String node,String slist) throws Exception{
349
+        //返回的列表定义
350
+        List<HashMap<String,String>> alist = new ArrayList<HashMap<String,String>>();
351
+
352
+        //返回指定节点的标签Element值
353
+        Element name = getNodeElement(root,node);
354
+//		System.out.println("指定节点的值:"+name);
355
+
356
+//		List booklist=name.getChildren(slist);
357
+        List booklist=name.getChildren();
358
+//		System.out.println("指定节点的值11:"+booklist);
359
+        for (Iterator iter = booklist.iterator(); iter.hasNext();) {
360
+            Element book = (Element) iter.next();
361
+            List<Element> list = book.getChildren();
362
+            HashMap<String,String> map = new HashMap<String,String>();
363
+            for(Element child : list)
364
+            {
365
+                map.put(child.getName(), child.getTextTrim());
366
+            }
367
+            alist.add(map);
368
+        }
369
+//		System.out.println("获取数据行数:"+booklist.size());
370
+
371
+        return alist;
372
+    }
373
+
374
+    public HashMap<String, String> getMapParse(Element root, String node) throws JDOMException, IOException
375
+    {
376
+        Element key = getNodeElement(root, node);
377
+        List<Element> list = key.getChildren();
378
+        HashMap<String, String> map = new HashMap();
379
+        for (Element e : list) {
380
+            map.put(e.getName(), e.getTextTrim());
381
+        }
382
+        return map;
383
+    }
384
+
385
+    /**
386
+     * 通过节点名称获取 对应的节点值
387
+     * @param root 解析的文档xml根节点
388
+     * @param node 节点的名称
389
+     * @return
390
+     * @throws JDOMException
391
+     * @throws IOException
392
+     */
393
+    public String getKeyParse(Element root,String node) throws JDOMException, IOException{
394
+
395
+        //返回指定节点的标签Element值
396
+        Element key = getNodeElement(root,node);
397
+        //System.out.println(key);
398
+        return key.getTextTrim();
399
+    }
400
+
401
+    /**
402
+     * 返回指定的节点名称的Element标签
403
+     * @param e 根节点值
404
+     * @param name 获取的标签值
405
+     * @return
406
+     */
407
+    //
408
+    public static Element getNodeElement(Element e,String name){
409
+        Element ee = null ;
410
+        if (e != null)
411
+        {
412
+            if(e.getName() == name)
413
+            {
414
+                ee = e;
415
+            }else{
416
+                if (e.getChildren() != null)   //如果存在子节点
417
+                {
418
+                    List<Element> list = e.getChildren();
419
+                    for (Element el : list)    //循环输出
420
+                    {
421
+                        if(el.getName()== name)   //如果子节点还存在子节点,则递归获取
422
+                        {
423
+                            ee = el;
424
+                            return ee;
425
+                        }
426
+                        else
427
+                        {
428
+//							System.out.println(el.getName()+", ");
429
+                            ee = getNodeElement(el, name);  //将叶子节点值压入map
430
+                        }
431
+                    }
432
+                }
433
+            }
434
+        }
435
+        return ee;
436
+    }
437
+
438
+    public HashMap<String,Object> sendData(String status, String message, List list, Map map){
439
+        HashMap<String,Object> send = new HashMap<String,Object>();
440
+        //请求状态
441
+        send.put("status", status);
442
+        //请求状态信息
443
+        send.put("message", message);
444
+        //请求的列表数据
445
+        send.put("list", list);
446
+        //请求的单列数据
447
+        send.put("map", map);
448
+
449
+        return send;
450
+    }
451
+
452
+}

+ 38
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostActualService.java Просмотреть файл

@@ -0,0 +1,38 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service;
2
+
3
+
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostActual;
6
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
7
+import com.zzsmart.qomo.kn.cost.manage.vo.CostEffectiveVO;
8
+import com.zzsmart.qomo.kn.cost.manage.vo.LaborDiffVO;
9
+import com.zzsmart.qomo.kn.cost.manage.vo.RealLaborVO;
10
+import com.zzsmart.qomo.kn.cost.manage.vo.RealProduceVO;
11
+import org.springframework.web.servlet.ModelAndView;
12
+
13
+import java.util.List;
14
+
15
+/**
16
+ * @Description: app_scene_cost_actual
17
+ * @Author: jeecg-boot
18
+ * @Date:   2024-10-15
19
+ * @Version: V1.0
20
+ */
21
+public interface IAppSceneCostActualService extends IService<AppSceneCostActual> {
22
+
23
+    public void addCostActual(CostEffectiveVO costEffectiveVO);
24
+
25
+    public List<String> queryParent(int resultid, String matnr);
26
+
27
+    public List<AppSceneCostSapZcorc> queryMatnrDetail(int resultid, String matnr);
28
+
29
+    public List<RealLaborVO> queryAufnrDetail(int resultid, String matnr);
30
+
31
+    public List<RealProduceVO> queryProduceDetail(int resultid, String matnr);
32
+
33
+    public ModelAndView exportMatnrDetail(int resultid, String matnr);
34
+
35
+    public ModelAndView exportLaborDetail(int resultid, String matnr);
36
+
37
+    public ModelAndView exportProduceDetail(int resultid, String matnr);
38
+}

+ 15
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostAufnrMatnrService.java Просмотреть файл

@@ -0,0 +1,15 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service;
2
+
3
+
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostAufnrMatnr;
6
+
7
+/**
8
+ * @Description: app_scene_cost_aufnr_matnr
9
+ * @Author: jeecg-boot
10
+ * @Date:   2024-10-05
11
+ * @Version: V1.0
12
+ */
13
+public interface IAppSceneCostAufnrMatnrService extends IService<AppSceneCostAufnrMatnr> {
14
+
15
+}

+ 1
- 1
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostBomRelevancyService.java Просмотреть файл

@@ -25,6 +25,6 @@ public interface IAppSceneCostBomRelevancyService extends IService<AppSceneCostB
25 25
      * @param topMaterialCode
26 26
      * @return
27 27
      */
28
-    List<BomTreeVo> queryAllBomInfoByTopMaterialCode(String topMaterialCode);
28
+    List<BomTreeVo> queryAllBomInfoByTopMaterialCode(String topMaterialCode,String werks);
29 29
 
30 30
 }

+ 11
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostCountService.java Просмотреть файл

@@ -3,8 +3,13 @@ package com.zzsmart.qomo.kn.cost.manage.service;
3 3
 import com.baomidou.mybatisplus.extension.service.IService;
4 4
 import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostCount;
5 5
 import com.zzsmart.qomo.kn.cost.manage.vo.AppSceneCostCountVO;
6
+import com.zzsmart.qomo.kn.cost.manage.vo.BatchCount;
7
+import com.zzsmart.qomo.kn.cost.manage.vo.MatnrVersionVO;
6 8
 import com.zzsmart.qomo.kn.cost.manage.vo.MissingComponentVO;
9
+import org.jeecg.common.api.vo.Result;
7 10
 
11
+import javax.servlet.http.HttpServletRequest;
12
+import javax.servlet.http.HttpServletResponse;
8 13
 import java.util.List;
9 14
 
10 15
 /**
@@ -33,4 +38,10 @@ public interface IAppSceneCostCountService extends IService<AppSceneCostCount> {
33 38
      * @param appSceneCostCount
34 39
      */
35 40
     void addCostCountTask(AppSceneCostCountVO appSceneCostCount);
41
+
42
+    AppSceneCostCount queryByVersion(String version);
43
+
44
+    public Result<?> BatchCount(HttpServletRequest request, HttpServletResponse response);
45
+
46
+    public MatnrVersionVO getVersionsByMatnr(String werks, String matnr, String ymonth);
36 47
 }

+ 20
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostInvoiceService.java Просмотреть файл

@@ -0,0 +1,20 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service;
2
+
3
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostInvoice;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapEine;
6
+
7
+import java.math.BigDecimal;
8
+import java.util.List;
9
+import java.util.Map;
10
+
11
+/**
12
+ * @Description: app_scene_cost_invoice
13
+ * @Author: jeecg-boot
14
+ * @Date:   2024-09-22
15
+ * @Version: V1.0
16
+ */
17
+public interface IAppSceneCostInvoiceService extends IService<AppSceneCostInvoice> {
18
+
19
+    Map<String, BigDecimal> getPrices(List<String> materialNos);
20
+}

+ 29
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostMiningAufnrService.java Просмотреть файл

@@ -0,0 +1,29 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service;
2
+
3
+
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningAufnr;
6
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningMaterial;
7
+import com.zzsmart.qomo.kn.cost.manage.vo.*;
8
+import org.springframework.web.servlet.ModelAndView;
9
+
10
+import javax.servlet.http.HttpServletRequest;
11
+import java.util.List;
12
+
13
+/**
14
+ * @Description: app_scene_cost_mining_aufnr
15
+ * @Author: jeecg-boot
16
+ * @Date:   2024-10-15
17
+ * @Version: V1.0
18
+ */
19
+public interface IAppSceneCostMiningAufnrService extends IService<AppSceneCostMiningAufnr> {
20
+
21
+    public List<AufnrDiff> getByResultid(int id);
22
+
23
+    public List<LaborDiffVO> getLaborByResultid(int id);
24
+
25
+    public List<ProduceDiffVO> getProduceByResultid(int id);
26
+
27
+    public ModelAndView exportXls2(HttpServletRequest request, AufnrExportVO object, Class<AppSceneCostMiningAufnr> clazz, String title);
28
+
29
+}

+ 19
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostMiningDiffService.java Просмотреть файл

@@ -0,0 +1,19 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service;
2
+
3
+
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningDiff;
6
+import com.zzsmart.qomo.kn.cost.manage.vo.MiningDiffTotalVO;
7
+
8
+import java.util.List;
9
+
10
+/**
11
+ * @Description: app_scene_cost_mining_diff
12
+ * @Author: jeecg-boot
13
+ * @Date:   2024-10-15
14
+ * @Version: V1.0
15
+ */
16
+public interface IAppSceneCostMiningDiffService extends IService<AppSceneCostMiningDiff> {
17
+
18
+    public List<MiningDiffTotalVO> getMiningDiffTotalById(int id);
19
+}

+ 15
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostMiningLaborService.java Просмотреть файл

@@ -0,0 +1,15 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service;
2
+
3
+
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningLabor;
6
+
7
+/**
8
+ * @Description: app_scene_cost_mining_labor
9
+ * @Author: jeecg-boot
10
+ * @Date:   2024-11-05
11
+ * @Version: V1.0
12
+ */
13
+public interface IAppSceneCostMiningLaborService extends IService<AppSceneCostMiningLabor> {
14
+
15
+}

+ 27
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostMiningMaterialService.java Просмотреть файл

@@ -0,0 +1,27 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service;
2
+
3
+
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningMaterial;
6
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardResult;
7
+import com.zzsmart.qomo.kn.cost.manage.vo.MaterialDiff;
8
+import com.zzsmart.qomo.kn.cost.manage.vo.MiningDiffTotalVO;
9
+import org.springframework.web.servlet.ModelAndView;
10
+
11
+import javax.servlet.http.HttpServletRequest;
12
+import java.util.List;
13
+
14
+/**
15
+ * @Description: app_scene_cost_mining_material
16
+ * @Author: jeecg-boot
17
+ * @Date:   2024-10-15
18
+ * @Version: V1.0
19
+ */
20
+public interface IAppSceneCostMiningMaterialService extends IService<AppSceneCostMiningMaterial> {
21
+
22
+    public List<MaterialDiff> getByResultid(int id);
23
+
24
+    public ModelAndView exportXls2(HttpServletRequest request, AppSceneCostMiningMaterial object, Class<AppSceneCostMiningMaterial> clazz, String title);
25
+
26
+    //public ModelAndView exportMaterialDiffXls(HttpServletRequest request, AppSceneCostMiningMaterial object, Class<AppSceneCostMiningMaterial> clazz, String title);
27
+}

+ 15
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostMiningReasonService.java Просмотреть файл

@@ -0,0 +1,15 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service;
2
+
3
+
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningReason;
6
+
7
+/**
8
+ * @Description: app_scene_cost_mining_reason
9
+ * @Author: jeecg-boot
10
+ * @Date:   2024-10-15
11
+ * @Version: V1.0
12
+ */
13
+public interface IAppSceneCostMiningReasonService extends IService<AppSceneCostMiningReason> {
14
+
15
+}

+ 20
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostMiningResultService.java Просмотреть файл

@@ -0,0 +1,20 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service;
2
+
3
+
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningResult;
6
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
7
+import com.zzsmart.qomo.kn.cost.manage.vo.MatnrVersionVO;
8
+
9
+import java.util.List;
10
+
11
+/**
12
+ * @Description: app_scene_cost_mining_result
13
+ * @Author: jeecg-boot
14
+ * @Date:   2024-10-15
15
+ * @Version: V1.0
16
+ */
17
+public interface IAppSceneCostMiningResultService extends IService<AppSceneCostMiningResult> {
18
+
19
+
20
+}

+ 15
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostSapAfruService.java Просмотреть файл

@@ -0,0 +1,15 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service;
2
+
3
+
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapAfru;
6
+
7
+/**
8
+ * @Description: app_scene_cost_sap_afru
9
+ * @Author: jeecg-boot
10
+ * @Date:   2024-10-15
11
+ * @Version: V1.0
12
+ */
13
+public interface IAppSceneCostSapAfruService extends IService<AppSceneCostSapAfru> {
14
+
15
+}

+ 20
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostSapEineService.java Просмотреть файл

@@ -0,0 +1,20 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service;
2
+
3
+
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapEine;
6
+
7
+import java.math.BigDecimal;
8
+import java.util.List;
9
+import java.util.Map;
10
+
11
+/**
12
+ * @Description: app_scene_cost_sap_eine
13
+ * @Author: jeecg-boot
14
+ * @Date:   2024-09-21
15
+ * @Version: V1.0
16
+ */
17
+public interface IAppSceneCostSapEineService extends IService<AppSceneCostSapEine> {
18
+
19
+    Map<String, AppSceneCostSapEine> getPrices(List<String> materialNos);
20
+}

+ 21
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostSapEkpoService.java Просмотреть файл

@@ -0,0 +1,21 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service;
2
+
3
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapEine;
4
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapEkpo;
5
+import com.baomidou.mybatisplus.extension.service.IService;
6
+
7
+import java.math.BigDecimal;
8
+import java.util.List;
9
+import java.util.Map;
10
+
11
+/**
12
+ * @Description: app_scene_cost_sap_ekpo
13
+ * @Author: jeecg-boot
14
+ * @Date:   2024-09-22
15
+ * @Version: V1.0
16
+ */
17
+public interface IAppSceneCostSapEkpoService extends IService<AppSceneCostSapEkpo> {
18
+
19
+    Map<String, BigDecimal> getPrices(List<String> materialNos);
20
+
21
+}

+ 14
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostSapHourRateService.java Просмотреть файл

@@ -0,0 +1,14 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapHourRate;
5
+
6
+/**
7
+ * @Description: app_scene_cost_sap_hour_rate
8
+ * @Author: jeecg-boot
9
+ * @Date:   2024-10-15
10
+ * @Version: V1.0
11
+ */
12
+public interface IAppSceneCostSapHourRateService extends IService<AppSceneCostSapHourRate> {
13
+
14
+}

+ 15
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostSapZcorcService.java Просмотреть файл

@@ -0,0 +1,15 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service;
2
+
3
+
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
6
+
7
+/**
8
+ * @Description: app_scene_cost_sap_zcorc
9
+ * @Author: jeecg-boot
10
+ * @Date:   2024-10-15
11
+ * @Version: V1.0
12
+ */
13
+public interface IAppSceneCostSapZcorcService extends IService<AppSceneCostSapZcorc> {
14
+
15
+}

+ 15
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostSapZtmmx004Service.java Просмотреть файл

@@ -0,0 +1,15 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service;
2
+
3
+
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZtmmx004;
6
+
7
+/**
8
+ * @Description: app_scene_cost_sap_ztmmx004
9
+ * @Author: jeecg-boot
10
+ * @Date:   2024-10-17
11
+ * @Version: V1.0
12
+ */
13
+public interface IAppSceneCostSapZtmmx004Service extends IService<AppSceneCostSapZtmmx004> {
14
+
15
+}

+ 0
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostStandardBomService.java Просмотреть файл


Некоторые файлы не были показаны из-за большого количества измененных файлов