Przeglądaj źródła

新增基础数据(小时费率、采购价、工序工时、物料BOM、版本号、部件缺失信息)相关接口

wangqiong 1 rok temu
rodzic
commit
b9f7d0380d
68 zmienionych plików z 2019 dodań i 2276 usunięć
  1. 14
    14
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostCountController.java
  2. 162
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostHourRateController.java
  3. 190
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMaterialBomController.java
  4. 159
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMaterialProcessHoursController.java
  5. 159
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostPartMissingInfoController.java
  6. 159
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostPurchasePriceController.java
  7. 157
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardVersionController.java
  8. 0
    70
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/CostMaterialBomController.java
  9. 0
    20
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/CostMaterialProcessHoursController.java
  10. 0
    179
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/CostPartMissingInfoController.java
  11. 0
    20
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/CostPurchasePriceController.java
  12. 0
    178
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/CostStandardVersionController.java
  13. 0
    162
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/HourRateController.java
  14. 127
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostHourRate.java
  15. 261
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostMaterialBom.java
  16. 41
    86
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostMaterialProcessHours.java
  17. 32
    28
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostPartMissingInfo.java
  18. 173
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostPurchasePrice.java
  19. 14
    11
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostStandardVersion.java
  20. 0
    335
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/CostMaterialBom.java
  21. 0
    135
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/CostModel.java
  22. 0
    215
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/CostPurchasePrice.java
  23. 0
    99
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/HourRate.java
  24. 14
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostHourRateMapper.java
  25. 9
    12
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMaterialBomMapper.java
  26. 14
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMaterialProcessHoursMapper.java
  27. 14
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostPartMissingInfoMapper.java
  28. 14
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostPurchasePriceMapper.java
  29. 17
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostStandardVersionMapper.java
  30. 0
    18
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/CostMaterialProcessHoursMapper.java
  31. 0
    18
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/CostPartMissingInfoMapper.java
  32. 0
    18
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/CostPurchasePriceMapper.java
  33. 0
    18
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/CostStandardVersionMapper.java
  34. 0
    14
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/HourRateMapper.java
  35. 1
    1
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostHourRateMapper.xml
  36. 1
    1
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMaterialBomMapper.xml
  37. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMaterialProcessHoursMapper.xml
  38. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostPartMissingInfoMapper.xml
  39. 1
    1
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostPurchasePriceMapper.xml
  40. 1
    1
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostStandardDetailMapper.xml
  41. 5
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostStandardVersionMapper.xml
  42. 0
    52
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/CostMaterialBomMapper.xml
  43. 0
    30
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/CostMaterialProcessHoursMapper.xml
  44. 0
    37
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/CostPurchasePriceMapper.xml
  45. 22
    22
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/StandardCostService.java
  46. 0
    30
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/CostMaterialBomService.java
  47. 0
    22
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/CostMaterialProcessHoursService.java
  48. 14
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostHourRateService.java
  49. 28
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostMaterialBomService.java
  50. 22
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostMaterialProcessHoursService.java
  51. 14
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostPartMissingInfoService.java
  52. 7
    9
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostPurchasePriceService.java
  53. 14
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostStandardVersionService.java
  54. 0
    14
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/ICostPartMissingInfoService.java
  55. 0
    35
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/ICostStandardVersionService.java
  56. 0
    15
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IHourRateService.java
  57. 11
    11
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/AppSceneCostCountServiceImpl.java
  58. 18
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/AppSceneCostHourRateServiceImpl.java
  59. 13
    14
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/AppSceneCostMaterialBomServiceImpl.java
  60. 55
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/AppSceneCostMaterialProcessHoursServiceImpl.java
  61. 18
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/AppSceneCostPartMissingInfoServiceImpl.java
  62. 14
    18
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/AppSceneCostPurchasePriceServiceImpl.java
  63. 19
    0
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/AppSceneCostStandardVersionServiceImpl.java
  64. 0
    57
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/CostMaterialProcessHoursServiceImpl.java
  65. 0
    20
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/CostPartMissingInfoServiceImpl.java
  66. 0
    214
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/CostStandardVersionServiceImpl.java
  67. 0
    19
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/HourRateServiceImpl.java
  68. 1
    3
      qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/vo/AppSceneCostCountVO.java

+ 14
- 14
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostCountController.java Wyświetl plik

@@ -102,20 +102,20 @@ public class AppSceneCostCountController extends JeecgController<AppSceneCostCou
102 102
         return Result.OK("删除成功!");
103 103
     }
104 104
 
105
-    /**
106
-     * 批量删除
107
-     *
108
-     * @param ids
109
-     * @return
110
-     */
111
-    @AutoLog(value = "app_scene_cost_count-批量删除")
112
-    @ApiOperation(value = "app_scene_cost_count-批量删除", notes = "app_scene_cost_count-批量删除")
113
-    @RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_count:deleteBatch")
114
-    @DeleteMapping(value = "/deleteBatch")
115
-    public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
116
-        this.appSceneCostCountService.removeByIds(Arrays.asList(ids.split(",")));
117
-        return Result.OK("批量删除成功!");
118
-    }
105
+//    /**
106
+//     * 批量删除
107
+//     *
108
+//     * @param ids
109
+//     * @return
110
+//     */
111
+//    @AutoLog(value = "app_scene_cost_count-批量删除")
112
+//    @ApiOperation(value = "app_scene_cost_count-批量删除", notes = "app_scene_cost_count-批量删除")
113
+//    @RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_count:deleteBatch")
114
+//    @DeleteMapping(value = "/deleteBatch")
115
+//    public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
116
+//        this.appSceneCostCountService.removeByIds(Arrays.asList(ids.split(",")));
117
+//        return Result.OK("批量删除成功!");
118
+//    }
119 119
 
120 120
     /**
121 121
      * 重新计算

+ 162
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostHourRateController.java Wyświetl plik

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

+ 190
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMaterialBomController.java Wyświetl plik

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

+ 159
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMaterialProcessHoursController.java Wyświetl plik

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

+ 159
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostPartMissingInfoController.java Wyświetl plik

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

+ 159
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostPurchasePriceController.java Wyświetl plik

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

+ 157
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardVersionController.java Wyświetl plik

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

+ 0
- 70
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/CostMaterialBomController.java Wyświetl plik

@@ -1,70 +0,0 @@
1
-package com.zzsmart.qomo.kn.cost.manage.controller;
2
-
3
-
4
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5
-import com.baomidou.mybatisplus.core.metadata.IPage;
6
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
7
-import com.zzsmart.qomo.kn.cost.manage.entity.CostMaterialBom;
8
-import com.zzsmart.qomo.kn.cost.manage.entity.CostStandardVersion;
9
-import com.zzsmart.qomo.kn.cost.manage.service.CostMaterialBomService;
10
-import io.swagger.annotations.Api;
11
-import io.swagger.annotations.ApiOperation;
12
-import org.jeecg.common.api.vo.Result;
13
-import org.jeecg.common.system.query.QueryGenerator;
14
-import org.springframework.beans.factory.annotation.Autowired;
15
-import org.springframework.web.bind.annotation.GetMapping;
16
-import org.springframework.web.bind.annotation.RequestMapping;
17
-
18
-import org.springframework.web.bind.annotation.RequestParam;
19
-import org.springframework.web.bind.annotation.RestController;
20
-
21
-import javax.servlet.http.HttpServletRequest;
22
-import java.util.List;
23
-
24
-/**
25
- * <p>
26
- * 物料bom 前端控制器
27
- * </p>
28
- *
29
- * @author
30
- * @since 2024-06-21
31
- */
32
-@RequestMapping("//cost-material-bom")
33
-@Api(tags="cost-标准成本-bom信息")
34
-@RestController
35
-public class CostMaterialBomController {
36
-    @Autowired
37
-    CostMaterialBomService costMaterialBomService;
38
-    /**
39
-     * 分页列表查询
40
-     *
41
-     * @param costMaterialBom
42
-     * @param pageNo
43
-     * @param pageSize
44
-     * @param req
45
-     * @return
46
-     */
47
-    //@AutoLog(value = "app_scene_cost_standard_version-分页列表查询")
48
-    @ApiOperation(value="物料bom分页列表查询", notes="物料bom分页列表查询")
49
-    @GetMapping(value = "/pageList")
50
-    public Result<IPage<CostMaterialBom>> queryPageList(CostMaterialBom costMaterialBom,
51
-                                                            @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
52
-                                                            @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
53
-                                                            HttpServletRequest req) {
54
-        QueryWrapper<CostMaterialBom> queryWrapper = QueryGenerator.initQueryWrapper(costMaterialBom, req.getParameterMap());
55
-        Page<CostMaterialBom> page = new Page<CostMaterialBom>(pageNo, pageSize);
56
-        IPage<CostMaterialBom> pageList = costMaterialBomService.page(page, queryWrapper);
57
-        return Result.OK(pageList);
58
-    }
59
-    /**
60
-     * 列表查询
61
-     *
62
-     * @return
63
-     */
64
-    @ApiOperation(value="物料bom列表查询", notes="物料bom列表查询")
65
-    @GetMapping(value = "/list")
66
-    public Result<  List<CostMaterialBom>> queryList(@RequestParam(name = "materialNumber",required = false) String materialNumber) {
67
-        List<CostMaterialBom> list = costMaterialBomService.queryListResult(materialNumber);
68
-        return Result.OK(list);
69
-    }
70
-}

+ 0
- 20
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/CostMaterialProcessHoursController.java Wyświetl plik

@@ -1,20 +0,0 @@
1
-package com.zzsmart.qomo.kn.cost.manage.controller;
2
-
3
-
4
-import org.springframework.web.bind.annotation.RequestMapping;
5
-
6
-import org.springframework.web.bind.annotation.RestController;
7
-
8
-/**
9
- * <p>
10
- * 物料工时工序表 前端控制器
11
- * </p>
12
- *
13
- * @author  
14
- * @since 2024-06-19
15
- */
16
-@RestController
17
-@RequestMapping("/cost-material-process-hours")
18
-public class CostMaterialProcessHoursController {
19
-
20
-}

+ 0
- 179
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/CostPartMissingInfoController.java Wyświetl plik

@@ -1,179 +0,0 @@
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.CostPartMissingInfo;
14
-import com.zzsmart.qomo.kn.cost.manage.service.ICostPartMissingInfoService;
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: 标准成本-部件缺失信息
43
- * @Author: wangqiong
44
- * @Date:   2024-06-13
45
- * @Version: V1.0
46
- */
47
-@Api(tags="cost-标准成本-部件缺失信息")
48
-@RestController
49
-@RequestMapping("//costPartMissingInfo")
50
-@Slf4j
51
-public class CostPartMissingInfoController extends JeecgController<CostPartMissingInfo, ICostPartMissingInfoService> {
52
-	@Autowired
53
-	private ICostPartMissingInfoService costPartMissingInfoService;
54
-	
55
-	/**
56
-	 * 分页列表查询
57
-	 *
58
-	 * @param costPartMissingInfo
59
-	 * @param pageNo
60
-	 * @param pageSize
61
-	 * @param req
62
-	 * @return
63
-	 */
64
-	//@AutoLog(value = "app_scene_cost_part_missing_info-分页列表查询")
65
-	@ApiOperation(value="app_scene_cost_part_missing_info-分页列表查询", notes="app_scene_cost_part_missing_info-分页列表查询")
66
-	@GetMapping(value = "/list")
67
-	public Result<IPage<CostPartMissingInfo>> queryPageList(CostPartMissingInfo costPartMissingInfo,
68
-								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
69
-								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
70
-								   HttpServletRequest req) {
71
-		QueryWrapper<CostPartMissingInfo> queryWrapper = QueryGenerator.initQueryWrapper(costPartMissingInfo, req.getParameterMap());
72
-		Page<CostPartMissingInfo> page = new Page<CostPartMissingInfo>(pageNo, pageSize);
73
-		IPage<CostPartMissingInfo> pageList = costPartMissingInfoService.page(page, queryWrapper);
74
-		return Result.OK(pageList);
75
-	}
76
-	
77
-	/**
78
-	 *   添加
79
-	 *
80
-	 * @param costPartMissingInfo
81
-	 * @return
82
-	 */
83
-	@AutoLog(value = "app_scene_cost_part_missing_info-添加")
84
-	@ApiOperation(value="app_scene_cost_part_missing_info-添加", notes="app_scene_cost_part_missing_info-添加")
85
-//	@RequiresPermissions(":app_scene_cost_part_missing_info:add")
86
-	@PostMapping(value = "/add")
87
-	public Result<String> add(@RequestBody CostPartMissingInfo costPartMissingInfo) {
88
-		costPartMissingInfoService.save(costPartMissingInfo);
89
-		return Result.OK("添加成功!");
90
-	}
91
-	
92
-	/**
93
-	 *  编辑
94
-	 *
95
-	 * @param costPartMissingInfo
96
-	 * @return
97
-	 */
98
-	@AutoLog(value = "app_scene_cost_part_missing_info-编辑")
99
-	@ApiOperation(value="app_scene_cost_part_missing_info-编辑", notes="app_scene_cost_part_missing_info-编辑")
100
-//	@RequiresPermissions(":app_scene_cost_part_missing_info:edit")
101
-	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
102
-	public Result<String> edit(@RequestBody CostPartMissingInfo costPartMissingInfo) {
103
-		costPartMissingInfoService.updateById(costPartMissingInfo);
104
-		return Result.OK("编辑成功!");
105
-	}
106
-	
107
-	/**
108
-	 *   通过id删除
109
-	 *
110
-	 * @param id
111
-	 * @return
112
-	 */
113
-	@AutoLog(value = "app_scene_cost_part_missing_info-通过id删除")
114
-	@ApiOperation(value="app_scene_cost_part_missing_info-通过id删除", notes="app_scene_cost_part_missing_info-通过id删除")
115
-//	@RequiresPermissions(":app_scene_cost_part_missing_info:delete")
116
-	@DeleteMapping(value = "/delete")
117
-	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
118
-		costPartMissingInfoService.removeById(id);
119
-		return Result.OK("删除成功!");
120
-	}
121
-	
122
-	/**
123
-	 *  批量删除
124
-	 *
125
-	 * @param ids
126
-	 * @return
127
-	 */
128
-	@AutoLog(value = "app_scene_cost_part_missing_info-批量删除")
129
-	@ApiOperation(value="app_scene_cost_part_missing_info-批量删除", notes="app_scene_cost_part_missing_info-批量删除")
130
-//	@RequiresPermissions(":app_scene_cost_part_missing_info:deleteBatch")
131
-	@DeleteMapping(value = "/deleteBatch")
132
-	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
133
-		this.costPartMissingInfoService.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_part_missing_info-通过id查询")
144
-	@ApiOperation(value="app_scene_cost_part_missing_info-通过id查询", notes="app_scene_cost_part_missing_info-通过id查询")
145
-	@GetMapping(value = "/queryById")
146
-	public Result<CostPartMissingInfo> queryById(@RequestParam(name="id",required=true) String id) {
147
-		CostPartMissingInfo costPartMissingInfo = costPartMissingInfoService.getById(id);
148
-		if(costPartMissingInfo==null) {
149
-			return Result.error("未找到对应数据");
150
-		}
151
-		return Result.OK(costPartMissingInfo);
152
-	}
153
-
154
-    /**
155
-    * 导出excel
156
-    *
157
-    * @param request
158
-    * @param costPartMissingInfo
159
-    */
160
-//    @RequiresPermissions(":app_scene_cost_part_missing_info:exportXls")
161
-    @RequestMapping(value = "/exportXls",method = RequestMethod.GET)
162
-    public ModelAndView exportXls(HttpServletRequest request, CostPartMissingInfo costPartMissingInfo) {
163
-        return super.exportXls(request, costPartMissingInfo, CostPartMissingInfo.class, "app_scene_cost_part_missing_info");
164
-    }
165
-
166
-    /**
167
-      * 通过excel导入数据
168
-    *
169
-    * @param request
170
-    * @param response
171
-    * @return
172
-    */
173
-//    @RequiresPermissions(":app_scene_cost_part_missing_info:importExcel")
174
-    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
175
-    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
176
-        return super.importExcel(request, response, CostPartMissingInfo.class);
177
-    }
178
-
179
-}

+ 0
- 20
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/CostPurchasePriceController.java Wyświetl plik

@@ -1,20 +0,0 @@
1
-package com.zzsmart.qomo.kn.cost.manage.controller;
2
-
3
-
4
-import org.springframework.web.bind.annotation.RequestMapping;
5
-
6
-import org.springframework.web.bind.annotation.RestController;
7
-
8
-/**
9
- * <p>
10
- * 物料采购单价 前端控制器
11
- * </p>
12
- *
13
- * @author  
14
- * @since 2024-06-19
15
- */
16
-@RestController
17
-@RequestMapping("/cost-purchase-price")
18
-public class CostPurchasePriceController {
19
-
20
-}

+ 0
- 178
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/CostStandardVersionController.java Wyświetl plik

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

+ 0
- 162
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/HourRateController.java Wyświetl plik

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

+ 127
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostHourRate.java Wyświetl plik

@@ -0,0 +1,127 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import com.fasterxml.jackson.annotation.JsonFormat;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+import org.jeecgframework.poi.excel.annotation.Excel;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+
15
+import java.io.Serializable;
16
+import java.math.BigDecimal;
17
+import java.util.Date;
18
+
19
+/**
20
+ * @Description: app_scene_cost_hour_rate
21
+ * @Author: jeecg-boot
22
+ * @Date: 2024-08-02
23
+ * @Version: V1.0
24
+ */
25
+@Data
26
+@TableName("app_scene_cost_hour_rate")
27
+@Accessors(chain = true)
28
+@EqualsAndHashCode(callSuper = false)
29
+@ApiModel(value = "app_scene_cost_hour_rate对象", description = "app_scene_cost_hour_rate")
30
+public class AppSceneCostHourRate implements Serializable {
31
+    private static final long serialVersionUID = 1L;
32
+
33
+    /**
34
+     * 年度
35
+     */
36
+    @Excel(name = "年度", width = 15)
37
+    @ApiModelProperty(value = "年度")
38
+    private String year;
39
+    /**
40
+     * 成本中心代码
41
+     */
42
+    @Excel(name = "成本中心代码", width = 15)
43
+    @ApiModelProperty(value = "成本中心代码")
44
+    private String costCenterCode;
45
+    /**
46
+     * 工厂代码
47
+     */
48
+    @Excel(name = "工厂代码", width = 15)
49
+    @ApiModelProperty(value = "工厂代码")
50
+    private String factory;
51
+    /**
52
+     * 人工小时费率
53
+     */
54
+    @Excel(name = "人工小时费率", width = 15)
55
+    @ApiModelProperty(value = "人工小时费率")
56
+    private BigDecimal laborHourRate;
57
+    /**
58
+     * 设备小时费率
59
+     */
60
+    @Excel(name = "设备小时费率", width = 15)
61
+    @ApiModelProperty(value = "设备小时费率")
62
+    private BigDecimal equipHourRate;
63
+    /**
64
+     * 燃动小时费率
65
+     */
66
+    @Excel(name = "燃动小时费率", width = 15)
67
+    @ApiModelProperty(value = "燃动小时费率")
68
+    private BigDecimal fuelHourRate;
69
+    /**
70
+     * 辅料小时费率
71
+     */
72
+    @Excel(name = "辅料小时费率", width = 15)
73
+    @ApiModelProperty(value = "辅料小时费率")
74
+    private BigDecimal auxiliaryHourRate;
75
+    /**
76
+     * 其他小时费率
77
+     */
78
+    @Excel(name = "其他小时费率", width = 15)
79
+    @ApiModelProperty(value = "其他小时费率")
80
+    private BigDecimal otherHourRate;
81
+    /**
82
+     * 生效日期
83
+     */
84
+    @Excel(name = "生效日期", width = 15, format = "yyyy-MM-dd")
85
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
86
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
87
+    @ApiModelProperty(value = "生效日期")
88
+    private Date effectiveDate;
89
+    /**
90
+     * 失效日期
91
+     */
92
+    @Excel(name = "失效日期", width = 15, format = "yyyy-MM-dd")
93
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
94
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
95
+    @ApiModelProperty(value = "失效日期")
96
+    private Date expirationDate;
97
+    /**
98
+     * 维护人员
99
+     */
100
+    @Excel(name = "维护人员", width = 15)
101
+    @ApiModelProperty(value = "维护人员")
102
+    private String guardian;
103
+    /**
104
+     * 维护时间
105
+     */
106
+    @Excel(name = "维护时间", width = 15)
107
+    @ApiModelProperty(value = "维护时间")
108
+    private String maintenanceTime;
109
+    /**
110
+     * 预留字段1
111
+     */
112
+    @Excel(name = "预留字段1", width = 15)
113
+    @ApiModelProperty(value = "预留字段1")
114
+    private String reserve1;
115
+    /**
116
+     * 预留字段2
117
+     */
118
+    @Excel(name = "预留字段2", width = 15)
119
+    @ApiModelProperty(value = "预留字段2")
120
+    private BigDecimal reserve2;
121
+    /**
122
+     * 主键
123
+     */
124
+    @TableId(type = IdType.ASSIGN_ID)
125
+    @ApiModelProperty(value = "主键")
126
+    private String id;
127
+}

+ 261
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostMaterialBom.java Wyświetl plik

@@ -0,0 +1,261 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import com.fasterxml.jackson.annotation.JsonFormat;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+import org.jeecgframework.poi.excel.annotation.Excel;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+
15
+import java.io.Serializable;
16
+import java.math.BigDecimal;
17
+import java.util.Date;
18
+
19
+/**
20
+ * @Description: app_scene_cost_material_bom
21
+ * @Author: jeecg-boot
22
+ * @Date: 2024-08-02
23
+ * @Version: V1.0
24
+ */
25
+@Data
26
+@TableName("app_scene_cost_material_bom")
27
+@Accessors(chain = true)
28
+@EqualsAndHashCode(callSuper = false)
29
+@ApiModel(value = "app_scene_cost_material_bom对象", description = "app_scene_cost_material_bom")
30
+public class AppSceneCostMaterialBom implements Serializable {
31
+    private static final long serialVersionUID = 1L;
32
+
33
+    /**
34
+     * id
35
+     */
36
+    @TableId(type = IdType.ASSIGN_ID)
37
+    @ApiModelProperty(value = "id")
38
+    private String id;
39
+    /**
40
+     * 物料编码
41
+     */
42
+    @Excel(name = "物料编码", width = 15)
43
+    @ApiModelProperty(value = "物料编码")
44
+    private String materialCode;
45
+    /**
46
+     * 物料名称
47
+     */
48
+    @Excel(name = "物料名称", width = 15)
49
+    @ApiModelProperty(value = "物料名称")
50
+    private String materialName;
51
+    /**
52
+     * 父级物料编码
53
+     */
54
+    @Excel(name = "父级物料编码", width = 15)
55
+    @ApiModelProperty(value = "父级物料编码")
56
+    private String parentMaterialCode;
57
+    /**
58
+     * 级别
59
+     */
60
+    @Excel(name = "级别", width = 15)
61
+    @ApiModelProperty(value = "级别")
62
+    private String level;
63
+    /**
64
+     * 排序
65
+     */
66
+    @Excel(name = "排序", width = 15)
67
+    @ApiModelProperty(value = "排序")
68
+    private Integer sort;
69
+    /**
70
+     * 计量单位
71
+     */
72
+    @Excel(name = "计量单位", width = 15)
73
+    @ApiModelProperty(value = "计量单位")
74
+    private String unit;
75
+    /**
76
+     * 数量
77
+     */
78
+    @Excel(name = "数量", width = 15)
79
+    @ApiModelProperty(value = "数量")
80
+    private Integer number;
81
+    /**
82
+     * 人工工时(分钟)
83
+     */
84
+    @Excel(name = "人工工时(分钟)", width = 15)
85
+    @ApiModelProperty(value = "人工工时(分钟)")
86
+    private BigDecimal laborHours;
87
+    /**
88
+     * 设备工时
89
+     */
90
+    @Excel(name = "设备工时", width = 15)
91
+    @ApiModelProperty(value = "设备工时")
92
+    private BigDecimal deviceHours;
93
+    /**
94
+     * 借用物料编码
95
+     */
96
+    @Excel(name = "借用物料编码", width = 15)
97
+    @ApiModelProperty(value = "借用物料编码")
98
+    private String borrowMaterialCode;
99
+    /**
100
+     * 参考物料编码
101
+     */
102
+    @Excel(name = "参考物料编码", width = 15)
103
+    @ApiModelProperty(value = "参考物料编码")
104
+    private String referMaterialCode;
105
+    /**
106
+     * 采购类型
107
+     */
108
+    @Excel(name = "采购类型", width = 15)
109
+    @ApiModelProperty(value = "采购类型")
110
+    private String purchaseType;
111
+    /**
112
+     * 特殊采购类型
113
+     */
114
+    @Excel(name = "特殊采购类型", width = 15)
115
+    @ApiModelProperty(value = "特殊采购类型")
116
+    private String specialPurchaseType;
117
+    /**
118
+     * 说明
119
+     */
120
+    @Excel(name = "说明", width = 15)
121
+    @ApiModelProperty(value = "说明")
122
+    private String explanation;
123
+    /**
124
+     * 单位数量
125
+     */
126
+    @Excel(name = "单位数量", width = 15)
127
+    @ApiModelProperty(value = "单位数量")
128
+    private BigDecimal quantity;
129
+    /**
130
+     * 重量(g)
131
+     */
132
+    @Excel(name = "重量(g)", width = 15)
133
+    @ApiModelProperty(value = "重量(g)")
134
+    private String weight;
135
+    /**
136
+     * 材料/牌号
137
+     */
138
+    @Excel(name = "材料/牌号", width = 15)
139
+    @ApiModelProperty(value = "材料/牌号")
140
+    private String materialAndBrand;
141
+    /**
142
+     * 表面处理,材料
143
+     */
144
+    @Excel(name = "表面处理,材料", width = 15)
145
+    @ApiModelProperty(value = "表面处理,材料")
146
+    private String surfaceMaterial;
147
+    /**
148
+     * 厚度(mm)
149
+     */
150
+    @Excel(name = "厚度(mm)", width = 15)
151
+    @ApiModelProperty(value = "厚度(mm)")
152
+    private String surfaceThickness;
153
+    /**
154
+     * 表面积(mm²)
155
+     */
156
+    @Excel(name = "表面积(mm²)", width = 15)
157
+    @ApiModelProperty(value = "表面积(mm²)")
158
+    private String surfaceArea;
159
+    /**
160
+     * 长(mm)
161
+     */
162
+    @Excel(name = "长(mm)", width = 15)
163
+    @ApiModelProperty(value = "长(mm)")
164
+    private String length;
165
+    /**
166
+     * 宽(mm)
167
+     */
168
+    @Excel(name = "宽(mm)", width = 15)
169
+    @ApiModelProperty(value = "宽(mm)")
170
+    private String width;
171
+    /**
172
+     * 高(mm)
173
+     */
174
+    @Excel(name = "高(mm)", width = 15)
175
+    @ApiModelProperty(value = "高(mm)")
176
+    private String height;
177
+    /**
178
+     * 图示/图档/文档 文件ID
179
+     */
180
+    @Excel(name = "图示/图档/文档 文件ID", width = 15)
181
+    @ApiModelProperty(value = "图示/图档/文档 文件ID")
182
+    private Integer figureFileId;
183
+    /**
184
+     * 是否新摸具(0否 1是)
185
+     */
186
+    @Excel(name = "是否新摸具(0否 1是)", width = 15)
187
+    @ApiModelProperty(value = "是否新摸具(0否 1是)")
188
+    private Integer newTooling;
189
+    /**
190
+     * 成型方式(枚举)
191
+     */
192
+    @Excel(name = "成型方式(枚举)", width = 15)
193
+    @ApiModelProperty(value = "成型方式(枚举)")
194
+    private String shapingMethod;
195
+    /**
196
+     * 作业内容
197
+     */
198
+    @Excel(name = "作业内容", width = 15)
199
+    @ApiModelProperty(value = "作业内容")
200
+    private String workContent;
201
+    /**
202
+     * 加工地点
203
+     */
204
+    @Excel(name = "加工地点", width = 15)
205
+    @ApiModelProperty(value = "加工地点")
206
+    private String processLocation;
207
+    /**
208
+     * 成本中心
209
+     */
210
+    @Excel(name = "成本中心", width = 15)
211
+    @ApiModelProperty(value = "成本中心")
212
+    private String costCenter;
213
+    /**
214
+     * 单价(未税)
215
+     */
216
+    @Excel(name = "单价(未税)", width = 15)
217
+    @ApiModelProperty(value = "单价(未税)")
218
+    private BigDecimal unitPrice;
219
+    /**
220
+     * 总价(未税)
221
+     */
222
+    @Excel(name = "总价(未税)", width = 15)
223
+    @ApiModelProperty(value = "总价(未税)")
224
+    private BigDecimal totalPrice;
225
+    /**
226
+     * 摸具费(未税)
227
+     */
228
+    @Excel(name = "摸具费(未税)", width = 15)
229
+    @ApiModelProperty(value = "摸具费(未税)")
230
+    private BigDecimal mouldPrice;
231
+    /**
232
+     * 创建人
233
+     */
234
+    @ApiModelProperty(value = "创建人")
235
+    private String createBy;
236
+    /**
237
+     * 创建时间
238
+     */
239
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
240
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
241
+    @ApiModelProperty(value = "创建时间")
242
+    private Date createTime;
243
+    /**
244
+     * 修改人
245
+     */
246
+    @ApiModelProperty(value = "修改人")
247
+    private String updateBy;
248
+    /**
249
+     * 修改时间
250
+     */
251
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
252
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
253
+    @ApiModelProperty(value = "修改时间")
254
+    private Date updateTime;
255
+    /**
256
+     * 备注(特殊技术信息)
257
+     */
258
+    @Excel(name = "备注(特殊技术信息)", width = 15)
259
+    @ApiModelProperty(value = "备注(特殊技术信息)")
260
+    private String remark;
261
+}

qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/CostMaterialProcessHours.java → qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostMaterialProcessHours.java Wyświetl plik

@@ -1,174 +1,129 @@
1 1
 package com.zzsmart.qomo.kn.cost.manage.entity;
2 2
 
3 3
 import com.baomidou.mybatisplus.annotation.IdType;
4
-import com.baomidou.mybatisplus.annotation.TableField;
5 4
 import com.baomidou.mybatisplus.annotation.TableId;
6 5
 import com.baomidou.mybatisplus.annotation.TableName;
6
+import com.fasterxml.jackson.annotation.JsonFormat;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+import org.jeecgframework.poi.excel.annotation.Excel;
13
+import org.springframework.format.annotation.DateTimeFormat;
7 14
 
8 15
 import java.io.Serializable;
9 16
 import java.math.BigDecimal;
10
-import java.time.LocalDateTime;
11
-
12
-import io.swagger.annotations.ApiModelProperty;
13
-import lombok.Getter;
14
-import lombok.Setter;
15
-import lombok.experimental.Accessors;
17
+import java.util.Date;
16 18
 
17 19
 /**
18
- * <p>
19
- * 物料工时工序表
20
- * </p>
21
- *
22
- * @author
23
- * @since 2024-06-19
20
+ * @Description: app_scene_cost_material_process_hours
21
+ * @Author: jeecg-boot
22
+ * @Date: 2024-08-02
23
+ * @Version: V1.0
24 24
  */
25
-@Getter
26
-@Setter
27
-@Accessors(chain = true)
25
+@Data
28 26
 @TableName("app_scene_cost_material_process_hours")
29
-public class CostMaterialProcessHours implements Serializable {
30
-
27
+@Accessors(chain = true)
28
+@EqualsAndHashCode(callSuper = false)
29
+@ApiModel(value = "app_scene_cost_material_process_hours对象", description = "app_scene_cost_material_process_hours")
30
+public class AppSceneCostMaterialProcessHours implements Serializable {
31 31
     private static final long serialVersionUID = 1L;
32 32
 
33 33
     /**
34 34
      * 主键
35 35
      */
36
-    @ApiModelProperty(value = "id")
37
-    @TableId(value = "id", type = IdType.AUTO)
36
+    @TableId(type = IdType.ASSIGN_ID)
37
+    @ApiModelProperty(value = "主键")
38 38
     private String id;
39
-
40 39
     /**
41 40
      * 物料编码
42 41
      */
42
+    @Excel(name = "物料编码", width = 15)
43 43
     @ApiModelProperty(value = "物料编码")
44
-    @TableField("material_code")
45 44
     private String materialCode;
46
-
47 45
     /**
48 46
      * 物料名称
49 47
      */
48
+    @Excel(name = "物料名称", width = 15)
50 49
     @ApiModelProperty(value = "物料名称")
51
-    @TableField("material_name")
52 50
     private String materialName;
53
-
54 51
     /**
55 52
      * 层级
56 53
      */
54
+    @Excel(name = "层级", width = 15)
57 55
     @ApiModelProperty(value = "层级")
58
-    @TableField("level")
59 56
     private String level;
60
-
61 57
     /**
62 58
      * 数量
63 59
      */
60
+    @Excel(name = "数量", width = 15)
64 61
     @ApiModelProperty(value = "数量")
65
-    @TableField("quantity")
66 62
     private BigDecimal quantity;
67
-
68 63
     /**
69 64
      * 采购类型
70 65
      */
66
+    @Excel(name = "采购类型", width = 15)
71 67
     @ApiModelProperty(value = "采购类型")
72
-    @TableField("purchase_type")
73 68
     private String purchaseType;
74
-
75 69
     /**
76 70
      * 工序
77 71
      */
72
+    @Excel(name = "工序", width = 15)
78 73
     @ApiModelProperty(value = "工序")
79
-    @TableField("work_process")
80 74
     private String workProcess;
81
-
82 75
     /**
83 76
      * 描述
84 77
      */
78
+    @Excel(name = "描述", width = 15)
85 79
     @ApiModelProperty(value = "描述")
86
-    @TableField("described")
87 80
     private String described;
88
-
89 81
     /**
90 82
      * 人工工时
91 83
      */
84
+    @Excel(name = "人工工时", width = 15)
92 85
     @ApiModelProperty(value = "人工工时")
93
-    @TableField("labor_hours")
94 86
     private BigDecimal laborHours;
95
-
96 87
     /**
97 88
      * 设备工时
98 89
      */
90
+    @Excel(name = "设备工时", width = 15)
99 91
     @ApiModelProperty(value = "设备工时")
100
-    @TableField("device_hours")
101 92
     private BigDecimal deviceHours;
102
-
103 93
     /**
104 94
      * 工作中心
105 95
      */
96
+    @Excel(name = "工作中心", width = 15)
106 97
     @ApiModelProperty(value = "工作中心")
107
-    @TableField("work_center")
108 98
     private String workCenter;
109
-
110 99
     /**
111 100
      * 创建人
112 101
      */
113
-    @TableField("create_by")
102
+    @ApiModelProperty(value = "创建人")
114 103
     private String createBy;
115
-
116 104
     /**
117 105
      * 创建时间
118 106
      */
119
-    @TableField("create_time")
120
-    private LocalDateTime createTime;
121
-
107
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
108
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
109
+    @ApiModelProperty(value = "创建时间")
110
+    private Date createTime;
122 111
     /**
123 112
      * 修改人
124 113
      */
125
-    @TableField("update_by")
114
+    @ApiModelProperty(value = "修改人")
126 115
     private String updateBy;
127
-
128 116
     /**
129 117
      * 修改时间
130 118
      */
131
-    @TableField("update_time")
132
-    private LocalDateTime updateTime;
133
-
119
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
120
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
121
+    @ApiModelProperty(value = "修改时间")
122
+    private Date updateTime;
134 123
     /**
135 124
      * 备注
136 125
      */
126
+    @Excel(name = "备注", width = 15)
137 127
     @ApiModelProperty(value = "备注")
138
-    @TableField("remark")
139 128
     private String remark;
140
-
141
-
142
-    public static final String ID = "id";
143
-
144
-    public static final String MATERIAL_CODE = "material_code";
145
-
146
-    public static final String MATERIAL_NAME = "material_name";
147
-
148
-    public static final String LEVEL = "level";
149
-
150
-    public static final String QUANTITY = "quantity";
151
-
152
-    public static final String PURCHASE_TYPE = "purchase_type";
153
-
154
-    public static final String WORK_PROCESS = "work_process";
155
-
156
-    public static final String DESCRIBED = "described";
157
-
158
-    public static final String LABOR_HOURS = "labor_hours";
159
-
160
-    public static final String DEVICE_HOURS = "device_hours";
161
-
162
-    public static final String WORK_CENTER = "work_center";
163
-
164
-    public static final String CREATE_BY = "create_by";
165
-
166
-    public static final String CREATE_TIME = "create_time";
167
-
168
-    public static final String UPDATE_BY = "update_by";
169
-
170
-    public static final String UPDATE_TIME = "update_time";
171
-
172
-    public static final String REMARK = "remark";
173
-
174 129
 }

qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/CostPartMissingInfo.java → qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostPartMissingInfo.java Wyświetl plik

@@ -1,28 +1,22 @@
1 1
 package com.zzsmart.qomo.kn.cost.manage.entity;
2 2
 
3
-import java.io.Serializable;
4
-import java.io.UnsupportedEncodingException;
5
-import java.util.Date;
6
-import java.math.BigDecimal;
7 3
 import com.baomidou.mybatisplus.annotation.IdType;
8 4
 import com.baomidou.mybatisplus.annotation.TableId;
9 5
 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 6
 import io.swagger.annotations.ApiModel;
18 7
 import io.swagger.annotations.ApiModelProperty;
8
+import lombok.Builder;
9
+import lombok.Data;
19 10
 import lombok.EqualsAndHashCode;
20 11
 import lombok.experimental.Accessors;
12
+import org.jeecgframework.poi.excel.annotation.Excel;
13
+
14
+import java.io.Serializable;
21 15
 
22 16
 /**
23
- * @Description: 标准成本-部件缺失信息
24
- * @Author: wangqiong
25
- * @Date:   2024-06-13
17
+ * @Description: app_scene_cost_part_missing_info
18
+ * @Author: jeecg-boot
19
+ * @Date: 2024-08-02
26 20
  * @Version: V1.0
27 21
  */
28 22
 @Data
@@ -30,28 +24,38 @@ import lombok.experimental.Accessors;
30 24
 @TableName("app_scene_cost_part_missing_info")
31 25
 @Accessors(chain = true)
32 26
 @EqualsAndHashCode(callSuper = false)
33
-@ApiModel(value="app_scene_cost_part_missing_info对象", description="app_scene_cost_part_missing_info")
34
-public class CostPartMissingInfo implements Serializable {
27
+@ApiModel(value = "app_scene_cost_part_missing_info对象", description = "app_scene_cost_part_missing_info")
28
+public class AppSceneCostPartMissingInfo implements Serializable {
35 29
     private static final long serialVersionUID = 1L;
36 30
 
37
-	/**id*/
38
-	@TableId(type = IdType.ASSIGN_ID)
31
+    /**
32
+     * id
33
+     */
34
+    @TableId(type = IdType.ASSIGN_ID)
39 35
     @ApiModelProperty(value = "id")
40 36
     private String id;
41
-	/**标准成本表主键id*/
42
-	@Excel(name = "标准成本表主键id", width = 15)
43
-    @ApiModelProperty(value = "标准成本表主键id")
44
-    private String costStandardId;
45
-	/**物料号*/
46
-	@Excel(name = "物料号", width = 15)
37
+    /**
38
+     * 物料号
39
+     */
40
+    @Excel(name = "物料号", width = 15)
47 41
     @ApiModelProperty(value = "物料号")
48 42
     private String materialNumber;
49
-	/**版本号*/
50
-	@Excel(name = "版本号", width = 15)
43
+    /**
44
+     * 版本号
45
+     */
46
+    @Excel(name = "版本号", width = 15)
51 47
     @ApiModelProperty(value = "版本号")
52 48
     private String versionNumber;
53
-	/**缺失信息*/
54
-	@Excel(name = "缺失信息", width = 15)
49
+    /**
50
+     * 缺失信息
51
+     */
52
+    @Excel(name = "缺失信息", width = 15)
55 53
     @ApiModelProperty(value = "缺失信息")
56 54
     private String missingInfo;
55
+    /**
56
+     * 标准成本表主键id
57
+     */
58
+    @Excel(name = "标准成本表主键id", width = 15)
59
+    @ApiModelProperty(value = "标准成本表主键id")
60
+    private String costStandardId;
57 61
 }

+ 173
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostPurchasePrice.java Wyświetl plik

@@ -0,0 +1,173 @@
1
+package com.zzsmart.qomo.kn.cost.manage.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import com.fasterxml.jackson.annotation.JsonFormat;
7
+import io.swagger.annotations.ApiModel;
8
+import io.swagger.annotations.ApiModelProperty;
9
+import lombok.Data;
10
+import lombok.EqualsAndHashCode;
11
+import lombok.experimental.Accessors;
12
+import org.jeecgframework.poi.excel.annotation.Excel;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+
15
+import java.io.Serializable;
16
+import java.math.BigDecimal;
17
+import java.util.Date;
18
+
19
+/**
20
+ * @Description: app_scene_cost_purchase_price
21
+ * @Author: jeecg-boot
22
+ * @Date: 2024-08-02
23
+ * @Version: V1.0
24
+ */
25
+@Data
26
+@TableName("app_scene_cost_purchase_price")
27
+@Accessors(chain = true)
28
+@EqualsAndHashCode(callSuper = false)
29
+@ApiModel(value = "app_scene_cost_purchase_price对象", description = "app_scene_cost_purchase_price")
30
+public class AppSceneCostPurchasePrice implements Serializable {
31
+    private static final long serialVersionUID = 1L;
32
+
33
+    /**
34
+     * 主键
35
+     */
36
+    @TableId(type = IdType.ASSIGN_ID)
37
+    @ApiModelProperty(value = "主键")
38
+    private String id;
39
+    /**
40
+     * 物料编码
41
+     */
42
+    @Excel(name = "物料编码", width = 15)
43
+    @ApiModelProperty(value = "物料编码")
44
+    private String materialCode;
45
+    /**
46
+     * 物料名称
47
+     */
48
+    @Excel(name = "物料名称", width = 15)
49
+    @ApiModelProperty(value = "物料名称")
50
+    private String materialName;
51
+    /**
52
+     * 规格型号
53
+     */
54
+    @Excel(name = "规格型号", width = 15)
55
+    @ApiModelProperty(value = "规格型号")
56
+    private String specification;
57
+    /**
58
+     * 采购类型
59
+     */
60
+    @Excel(name = "采购类型", width = 15)
61
+    @ApiModelProperty(value = "采购类型")
62
+    private String purchaseType;
63
+    /**
64
+     * 供应商代码
65
+     */
66
+    @Excel(name = "供应商代码", width = 15)
67
+    @ApiModelProperty(value = "供应商代码")
68
+    private String supplierCode;
69
+    /**
70
+     * 供应商名称
71
+     */
72
+    @Excel(name = "供应商名称", width = 15)
73
+    @ApiModelProperty(value = "供应商名称")
74
+    private String supplierName;
75
+    /**
76
+     * 采购价时间
77
+     */
78
+    @Excel(name = "采购价时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
79
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
80
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
81
+    @ApiModelProperty(value = "采购价时间")
82
+    private Date purchasePriceTime;
83
+    /**
84
+     * 采购价合计
85
+     */
86
+    @Excel(name = "采购价合计", width = 15)
87
+    @ApiModelProperty(value = "采购价合计")
88
+    private BigDecimal purchasePriceSum;
89
+    /**
90
+     * 最低采购单价
91
+     */
92
+    @Excel(name = "最低采购单价", width = 15)
93
+    @ApiModelProperty(value = "最低采购单价")
94
+    private BigDecimal minPurchasePrice;
95
+    /**
96
+     * 最新采购单价
97
+     */
98
+    @Excel(name = "最新采购单价", width = 15)
99
+    @ApiModelProperty(value = "最新采购单价")
100
+    private BigDecimal lastPurchasePrice;
101
+    /**
102
+     * 平均采购价
103
+     */
104
+    @Excel(name = "平均采购价", width = 15)
105
+    @ApiModelProperty(value = "平均采购价")
106
+    private BigDecimal purchasePriceAvg;
107
+    /**
108
+     * 直接材料费
109
+     */
110
+    @Excel(name = "直接材料费", width = 15)
111
+    @ApiModelProperty(value = "直接材料费")
112
+    private BigDecimal directMaterialCost;
113
+    /**
114
+     * 工艺加工费用
115
+     */
116
+    @Excel(name = "工艺加工费用", width = 15)
117
+    @ApiModelProperty(value = "工艺加工费用")
118
+    private BigDecimal processCost;
119
+    /**
120
+     * 运输费用
121
+     */
122
+    @Excel(name = "运输费用", width = 15)
123
+    @ApiModelProperty(value = "运输费用")
124
+    private BigDecimal transportCost;
125
+    /**
126
+     * 模具费用
127
+     */
128
+    @Excel(name = "模具费用", width = 15)
129
+    @ApiModelProperty(value = "模具费用")
130
+    private BigDecimal mouldCost;
131
+    /**
132
+     * 其他费用
133
+     */
134
+    @Excel(name = "其他费用", width = 15)
135
+    @ApiModelProperty(value = "其他费用")
136
+    private BigDecimal ortherCost;
137
+    /**
138
+     * 税率
139
+     */
140
+    @Excel(name = "税率", width = 15)
141
+    @ApiModelProperty(value = "税率")
142
+    private BigDecimal taxTate;
143
+    /**
144
+     * 创建人
145
+     */
146
+    @ApiModelProperty(value = "创建人")
147
+    private String createBy;
148
+    /**
149
+     * 创建时间
150
+     */
151
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
152
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
153
+    @ApiModelProperty(value = "创建时间")
154
+    private Date createTime;
155
+    /**
156
+     * 修改人
157
+     */
158
+    @ApiModelProperty(value = "修改人")
159
+    private String updateBy;
160
+    /**
161
+     * 修改时间
162
+     */
163
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
164
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
165
+    @ApiModelProperty(value = "修改时间")
166
+    private Date updateTime;
167
+    /**
168
+     * 备注
169
+     */
170
+    @Excel(name = "备注", width = 15)
171
+    @ApiModelProperty(value = "备注")
172
+    private String remark;
173
+}

qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/CostStandardVersion.java → qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/AppSceneCostStandardVersion.java Wyświetl plik

@@ -17,18 +17,18 @@ import java.io.Serializable;
17 17
 import java.util.Date;
18 18
 
19 19
 /**
20
- * @Description: 标准成本-版本号
21
- * @Author: wangqiong
22
- * @Date: 2024-06-13
20
+ * @Description: app_scene_cost_standard_version
21
+ * @Author: jeecg-boot
22
+ * @Date: 2024-08-02
23 23
  * @Version: V1.0
24 24
  */
25 25
 @Data
26
-@TableName("app_scene_cost_standard_version")
27 26
 @Builder
27
+@TableName("app_scene_cost_standard_version")
28 28
 @Accessors(chain = true)
29 29
 @EqualsAndHashCode(callSuper = false)
30 30
 @ApiModel(value = "app_scene_cost_standard_version对象", description = "app_scene_cost_standard_version")
31
-public class CostStandardVersion implements Serializable {
31
+public class AppSceneCostStandardVersion implements Serializable {
32 32
     private static final long serialVersionUID = 1L;
33 33
 
34 34
     /**
@@ -37,7 +37,6 @@ public class CostStandardVersion implements Serializable {
37 37
     @TableId(type = IdType.ASSIGN_ID)
38 38
     @ApiModelProperty(value = "id")
39 39
     private String id;
40
-
41 40
     /**
42 41
      * 图号
43 42
      */
@@ -47,23 +46,25 @@ public class CostStandardVersion implements Serializable {
47 46
     /**
48 47
      * 阶段,A-初始,B-首批,C-量产
49 48
      */
50
-    @Excel(name = "阶段", width = 15)
51
-    @ApiModelProperty(value = "阶段")
49
+    @Excel(name = "阶段,A-初始,B-首批,C-量产", width = 15)
50
+    @ApiModelProperty(value = "阶段,A-初始,B-首批,C-量产")
52 51
     private String stage;
53 52
     /**
54
-     * 物料号
53
+     * 物料号,关联kn_new_sap_mara表matnr字段
55 54
      */
56
-    @Excel(name = "物料号", width = 15)
57
-    @ApiModelProperty(value = "物料号")
55
+    @Excel(name = "物料号,关联kn_new_sap_mara表matnr字段", width = 15)
56
+    @ApiModelProperty(value = "物料号,关联kn_new_sap_mara表matnr字段")
58 57
     private String materialNumber;
59 58
     /**
60 59
      * 版本号
61 60
      */
61
+    @Excel(name = "版本号", width = 15)
62 62
     @ApiModelProperty(value = "版本号")
63 63
     private String versionNumber;
64 64
     /**
65 65
      * 版本状态
66 66
      */
67
+    @Excel(name = "版本状态", width = 15)
67 68
     @ApiModelProperty(value = "版本状态")
68 69
     private String versionStatus;
69 70
     /**
@@ -93,11 +94,13 @@ public class CostStandardVersion implements Serializable {
93 94
     /**
94 95
      * 备注
95 96
      */
97
+    @Excel(name = "备注", width = 15)
96 98
     @ApiModelProperty(value = "备注")
97 99
     private String remark;
98 100
     /**
99 101
      * 年份
100 102
      */
103
+    @Excel(name = "年份", width = 15)
101 104
     @ApiModelProperty(value = "年份")
102 105
     private String versionYear;
103 106
 }

+ 0
- 335
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/CostMaterialBom.java Wyświetl plik

@@ -1,335 +0,0 @@
1
-package com.zzsmart.qomo.kn.cost.manage.entity;
2
-
3
-import com.baomidou.mybatisplus.annotation.IdType;
4
-import com.baomidou.mybatisplus.annotation.TableField;
5
-import com.baomidou.mybatisplus.annotation.TableId;
6
-import com.baomidou.mybatisplus.annotation.TableName;
7
-import java.io.Serializable;
8
-import java.math.BigDecimal;
9
-import java.time.LocalDateTime;
10
-import lombok.Getter;
11
-import lombok.Setter;
12
-import lombok.experimental.Accessors;
13
-
14
-/**
15
- * <p>
16
- * 物料bom
17
- * </p>
18
- *
19
- * @author  
20
- * @since 2024-06-21
21
- */
22
-@Getter
23
-@Setter
24
-@Accessors(chain = true)
25
-@TableName("app_scene_cost_material_bom")
26
-public class CostMaterialBom implements Serializable {
27
-
28
-    private static final long serialVersionUID = 1L;
29
-
30
-    /**
31
-     * id
32
-     */
33
-    @TableId(value = "id", type = IdType.AUTO)
34
-    private String id;
35
-
36
-    /**
37
-     * 物料编码
38
-     */
39
-    @TableField("material_code")
40
-    private String materialCode;
41
-
42
-    /**
43
-     * 物料名称
44
-     */
45
-    @TableField("material_name")
46
-    private String materialName;
47
-
48
-    /**
49
-     * 父级物料编码
50
-     */
51
-    @TableField("parent_material_code")
52
-    private String parentMaterialCode;
53
-
54
-    /**
55
-     * 级别
56
-     */
57
-    @TableField("level")
58
-    private String level;
59
-
60
-    /**
61
-     * 排序
62
-     */
63
-    @TableField("sort")
64
-    private Integer sort;
65
-
66
-    /**
67
-     * 计量单位
68
-     */
69
-    @TableField("unit")
70
-    private String unit;
71
-
72
-    /**
73
-     * 数量
74
-     */
75
-    @TableField("number")
76
-    private Integer number;
77
-
78
-    /**
79
-     * 人工工时(分钟)
80
-     */
81
-    @TableField("labor_hours")
82
-    private BigDecimal laborHours;
83
-
84
-    /**
85
-     * 设备工时
86
-     */
87
-    @TableField("device_hours")
88
-    private BigDecimal deviceHours;
89
-
90
-    /**
91
-     * 借用物料编码
92
-     */
93
-    @TableField("borrow_material_code")
94
-    private String borrowMaterialCode;
95
-
96
-    /**
97
-     * 参考物料编码
98
-     */
99
-    @TableField("refer_material_code")
100
-    private String referMaterialCode;
101
-
102
-    /**
103
-     * 采购类型
104
-     */
105
-    @TableField("purchase_type")
106
-    private String purchaseType;
107
-
108
-    /**
109
-     * 特殊采购类型
110
-     */
111
-    @TableField("special_purchase_type")
112
-    private String specialPurchaseType;
113
-
114
-    /**
115
-     * 说明
116
-     */
117
-    @TableField("explanation")
118
-    private String explanation;
119
-
120
-    /**
121
-     * 单位数量
122
-     */
123
-    @TableField("quantity")
124
-    private BigDecimal quantity;
125
-
126
-    /**
127
-     * 重量(g)
128
-     */
129
-    @TableField("weight")
130
-    private String weight;
131
-
132
-    /**
133
-     * 材料/牌号
134
-     */
135
-    @TableField("material_and_brand")
136
-    private String materialAndBrand;
137
-
138
-    /**
139
-     * 表面处理,材料
140
-     */
141
-    @TableField("surface_material")
142
-    private String surfaceMaterial;
143
-
144
-    /**
145
-     * 厚度(mm)
146
-     */
147
-    @TableField("surface_thickness")
148
-    private String surfaceThickness;
149
-
150
-    /**
151
-     * 表面积(mm²)
152
-     */
153
-    @TableField("surface_area")
154
-    private String surfaceArea;
155
-
156
-    /**
157
-     * 长(mm)
158
-     */
159
-    @TableField("length")
160
-    private String length;
161
-
162
-    /**
163
-     * 宽(mm)
164
-     */
165
-    @TableField("width")
166
-    private String width;
167
-
168
-    /**
169
-     * 高(mm)
170
-     */
171
-    @TableField("height")
172
-    private String height;
173
-
174
-    /**
175
-     * 图示/图档/文档 文件ID
176
-     */
177
-    @TableField("figure_file_id")
178
-    private Long figureFileId;
179
-
180
-    /**
181
-     * 是否新摸具(0否 1是)
182
-     */
183
-    @TableField("new_tooling")
184
-    private Boolean newTooling;
185
-
186
-    /**
187
-     * 成型方式(枚举)
188
-     */
189
-    @TableField("shaping_method")
190
-    private String shapingMethod;
191
-
192
-    /**
193
-     * 作业内容
194
-     */
195
-    @TableField("work_content")
196
-    private String workContent;
197
-
198
-    /**
199
-     * 加工地点
200
-     */
201
-    @TableField("process_location")
202
-    private String processLocation;
203
-
204
-    /**
205
-     * 成本中心
206
-     */
207
-    @TableField("cost_center")
208
-    private String costCenter;
209
-
210
-    /**
211
-     * 单价(未税)
212
-     */
213
-    @TableField("unit_price")
214
-    private BigDecimal unitPrice;
215
-
216
-    /**
217
-     * 总价(未税)
218
-     */
219
-    @TableField("total_price")
220
-    private BigDecimal totalPrice;
221
-
222
-    /**
223
-     * 摸具费(未税)
224
-     */
225
-    @TableField("mould_price")
226
-    private BigDecimal mouldPrice;
227
-
228
-    /**
229
-     * 创建人
230
-     */
231
-    @TableField("create_by")
232
-    private String createBy;
233
-
234
-    /**
235
-     * 创建时间
236
-     */
237
-    @TableField("create_time")
238
-    private LocalDateTime createTime;
239
-
240
-    /**
241
-     * 修改人
242
-     */
243
-    @TableField("update_by")
244
-    private String updateBy;
245
-
246
-    /**
247
-     * 修改时间
248
-     */
249
-    @TableField("update_time")
250
-    private LocalDateTime updateTime;
251
-
252
-    /**
253
-     * 备注(特殊技术信息)
254
-     */
255
-    @TableField("remark")
256
-    private String remark;
257
-
258
-
259
-    public static final String ID = "id";
260
-
261
-    public static final String MATERIAL_CODE = "material_code";
262
-
263
-    public static final String MATERIAL_NAME = "material_name";
264
-
265
-    public static final String PARENT_MATERIAL_CODE = "parent_material_code";
266
-
267
-    public static final String LEVEL = "level";
268
-
269
-    public static final String SORT = "sort";
270
-
271
-    public static final String UNIT = "unit";
272
-
273
-    public static final String NUMBER = "number";
274
-
275
-    public static final String LABOR_HOURS = "labor_hours";
276
-
277
-    public static final String DEVICE_HOURS = "device_hours";
278
-
279
-    public static final String BORROW_MATERIAL_CODE = "borrow_material_code";
280
-
281
-    public static final String REFER_MATERIAL_CODE = "refer_material_code";
282
-
283
-    public static final String PURCHASE_TYPE = "purchase_type";
284
-
285
-    public static final String SPECIAL_PURCHASE_TYPE = "special_purchase_type";
286
-
287
-    public static final String EXPLANATION = "explanation";
288
-
289
-    public static final String QUANTITY = "quantity";
290
-
291
-    public static final String WEIGHT = "weight";
292
-
293
-    public static final String MATERIAL_AND_BRAND = "material_and_brand";
294
-
295
-    public static final String SURFACE_MATERIAL = "surface_material";
296
-
297
-    public static final String SURFACE_THICKNESS = "surface_thickness";
298
-
299
-    public static final String SURFACE_AREA = "surface_area";
300
-
301
-    public static final String LENGTH = "length";
302
-
303
-    public static final String WIDTH = "width";
304
-
305
-    public static final String HEIGHT = "height";
306
-
307
-    public static final String FIGURE_FILE_ID = "figure_file_id";
308
-
309
-    public static final String NEW_TOOLING = "new_tooling";
310
-
311
-    public static final String SHAPING_METHOD = "shaping_method";
312
-
313
-    public static final String WORK_CONTENT = "work_content";
314
-
315
-    public static final String PROCESS_LOCATION = "process_location";
316
-
317
-    public static final String COST_CENTER = "cost_center";
318
-
319
-    public static final String UNIT_PRICE = "unit_price";
320
-
321
-    public static final String TOTAL_PRICE = "total_price";
322
-
323
-    public static final String MOULD_PRICE = "mould_price";
324
-
325
-    public static final String CREATE_BY = "create_by";
326
-
327
-    public static final String CREATE_TIME = "create_time";
328
-
329
-    public static final String UPDATE_BY = "update_by";
330
-
331
-    public static final String UPDATE_TIME = "update_time";
332
-
333
-    public static final String REMARK = "remark";
334
-
335
-}

+ 0
- 135
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/CostModel.java Wyświetl plik

@@ -1,135 +0,0 @@
1
-package com.zzsmart.qomo.kn.cost.manage.entity;
2
-
3
-import com.baomidou.mybatisplus.annotation.IdType;
4
-import com.baomidou.mybatisplus.annotation.TableField;
5
-import com.baomidou.mybatisplus.annotation.TableId;
6
-import com.baomidou.mybatisplus.annotation.TableName;
7
-import java.io.Serializable;
8
-import java.time.LocalDateTime;
9
-
10
-import io.swagger.annotations.ApiModelProperty;
11
-import lombok.Getter;
12
-import lombok.Setter;
13
-import lombok.experimental.Accessors;
14
-
15
-/**
16
- * <p>
17
- * 
18
- * </p>
19
- *
20
- * @author  
21
- * @since 2024-07-11
22
- */
23
-@Getter
24
-@Setter
25
-@Accessors(chain = true)
26
-@TableName("app_scene_cost_model")
27
-public class CostModel implements Serializable {
28
-
29
-    private static final long serialVersionUID = 1L;
30
-
31
-    /**
32
-     * 主键
33
-     */
34
-    @TableId(value = "id", type = IdType.AUTO)
35
-    private Integer id;
36
-
37
-    /**
38
-     * 模型名称
39
-     */
40
-    @ApiModelProperty(value = "模型名称")
41
-    @TableField("model_name")
42
-    private String modelName;
43
-
44
-    /**
45
-     * 图号
46
-     */
47
-    @ApiModelProperty(value = "图号")
48
-    @TableField("drawing_no")
49
-    private Integer drawingNo;
50
-
51
-    /**
52
-     * 物料号
53
-     */
54
-    @ApiModelProperty(value = "物料号")
55
-    @TableField("material_no")
56
-    private Integer materialNo;
57
-
58
-    /**
59
-     * 物料类型
60
-     */
61
-    @ApiModelProperty(value = "物料类型")
62
-    @TableField("material_type")
63
-    private String materialType;
64
-
65
-    /**
66
-     * 模型版本
67
-     */
68
-    @ApiModelProperty(value = "模型版本")
69
-    @TableField("model_version")
70
-    private String modelVersion;
71
-
72
-    /**
73
-     * 状态
74
-     */
75
-    @ApiModelProperty(value = "状态")
76
-    @TableField("status")
77
-    private String status;
78
-
79
-    /**
80
-     * 创建时间
81
-     */
82
-    @ApiModelProperty(value = "创建时间")
83
-    @TableField("create_time")
84
-    private LocalDateTime createTime;
85
-
86
-    /**
87
-     * 创建人
88
-     */
89
-    @TableField("create_by")
90
-    private Integer createBy;
91
-
92
-    /**
93
-     * 更新时间
94
-     */
95
-    @TableField("update_time")
96
-    private LocalDateTime updateTime;
97
-
98
-    /**
99
-     * 更新人
100
-     */
101
-    @TableField("update_by")
102
-    private Integer updateBy;
103
-
104
-    /**
105
-     * 模型配置信息
106
-     */
107
-    @TableField("cost_model_detail")
108
-    private String costModelDetail;
109
-
110
-
111
-    public static final String ID = "id";
112
-
113
-    public static final String MODEL_NAME = "model_name";
114
-
115
-    public static final String DRAWING_NO = "drawing_no";
116
-
117
-    public static final String MATERIAL_NO = "material_no";
118
-
119
-    public static final String MATERIAL_TYPE = "material_type";
120
-
121
-    public static final String MODEL_VERSION = "model_version";
122
-
123
-    public static final String STATUS = "status";
124
-
125
-    public static final String CREATE_TIME = "create_time";
126
-
127
-    public static final String CREATE_BY = "create_by";
128
-
129
-    public static final String UPDATE_TIME = "update_time";
130
-
131
-    public static final String UPDATE_BY = "update_by";
132
-
133
-    public static final String COST_MODEL_DETAIL = "cost_model_detail";
134
-
135
-}

+ 0
- 215
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/CostPurchasePrice.java Wyświetl plik

@@ -1,215 +0,0 @@
1
-package com.zzsmart.qomo.kn.cost.manage.entity;
2
-
3
-import com.baomidou.mybatisplus.annotation.IdType;
4
-import com.baomidou.mybatisplus.annotation.TableField;
5
-import com.baomidou.mybatisplus.annotation.TableId;
6
-import com.baomidou.mybatisplus.annotation.TableName;
7
-import java.io.Serializable;
8
-import java.math.BigDecimal;
9
-import java.time.LocalDateTime;
10
-import lombok.Getter;
11
-import lombok.Setter;
12
-import lombok.experimental.Accessors;
13
-
14
-/**
15
- * <p>
16
- * 物料采购单价
17
- * </p>
18
- *
19
- * @author  
20
- * @since 2024-06-19
21
- */
22
-@Getter
23
-@Setter
24
-@Accessors(chain = true)
25
-@TableName("app_scene_cost_purchase_price")
26
-public class CostPurchasePrice implements Serializable {
27
-
28
-    private static final long serialVersionUID = 1L;
29
-
30
-    /**
31
-     * 主键
32
-     */
33
-    @TableId(value = "id", type = IdType.AUTO)
34
-    private String id;
35
-
36
-    /**
37
-     * 物料编码
38
-     */
39
-    @TableField("material_code")
40
-    private String materialCode;
41
-
42
-    /**
43
-     * 物料名称
44
-     */
45
-    @TableField("material_name")
46
-    private String materialName;
47
-
48
-    /**
49
-     * 规格型号
50
-     */
51
-    @TableField("specification")
52
-    private String specification;
53
-
54
-    /**
55
-     * 采购类型
56
-     */
57
-    @TableField("purchase_type")
58
-    private String purchaseType;
59
-
60
-    /**
61
-     * 供应商代码
62
-     */
63
-    @TableField("supplier_code")
64
-    private String supplierCode;
65
-
66
-    /**
67
-     * 供应商名称
68
-     */
69
-    @TableField("supplier_name")
70
-    private String supplierName;
71
-
72
-    /**
73
-     * 采购价时间
74
-     */
75
-    @TableField("purchase_price_time")
76
-    private LocalDateTime purchasePriceTime;
77
-
78
-    /**
79
-     * 采购价合计
80
-     */
81
-    @TableField("purchase_price_sum")
82
-    private BigDecimal purchasePriceSum;
83
-
84
-    /**
85
-     * 最低采购单价
86
-     */
87
-    @TableField("min_purchase_price")
88
-    private BigDecimal minPurchasePrice;
89
-
90
-    /**
91
-     * 最新采购单价
92
-     */
93
-    @TableField("last_purchase_price")
94
-    private BigDecimal lastPurchasePrice;
95
-
96
-    /**
97
-     * 平均采购价
98
-     */
99
-    @TableField("purchase_price_avg")
100
-    private BigDecimal purchasePriceAvg;
101
-
102
-    /**
103
-     * 直接材料费
104
-     */
105
-    @TableField("direct_material_cost")
106
-    private BigDecimal directMaterialCost;
107
-
108
-    /**
109
-     * 工艺加工费用
110
-     */
111
-    @TableField("process_cost")
112
-    private BigDecimal processCost;
113
-
114
-    /**
115
-     * 运输费用
116
-     */
117
-    @TableField("transport_cost")
118
-    private BigDecimal transportCost;
119
-
120
-    /**
121
-     * 模具费用
122
-     */
123
-    @TableField("mould_cost")
124
-    private BigDecimal mouldCost;
125
-
126
-    /**
127
-     * 其他费用
128
-     */
129
-    @TableField("orther_cost")
130
-    private BigDecimal ortherCost;
131
-
132
-    /**
133
-     * 税率
134
-     */
135
-    @TableField("tax_tate")
136
-    private BigDecimal taxTate;
137
-
138
-    /**
139
-     * 创建人
140
-     */
141
-    @TableField("create_by")
142
-    private String createBy;
143
-
144
-    /**
145
-     * 创建时间
146
-     */
147
-    @TableField("create_time")
148
-    private LocalDateTime createTime;
149
-
150
-    /**
151
-     * 修改人
152
-     */
153
-    @TableField("update_by")
154
-    private String updateBy;
155
-
156
-    /**
157
-     * 修改时间
158
-     */
159
-    @TableField("update_time")
160
-    private LocalDateTime updateTime;
161
-
162
-    /**
163
-     * 备注
164
-     */
165
-    @TableField("remark")
166
-    private String remark;
167
-
168
-
169
-    public static final String ID = "id";
170
-
171
-    public static final String MATERIAL_CODE = "material_code";
172
-
173
-    public static final String MATERIAL_NAME = "material_name";
174
-
175
-    public static final String SPECIFICATION = "specification";
176
-
177
-    public static final String PURCHASE_TYPE = "purchase_type";
178
-
179
-    public static final String SUPPLIER_CODE = "supplier_code";
180
-
181
-    public static final String SUPPLIER_NAME = "supplier_name";
182
-
183
-    public static final String PURCHASE_PRICE_TIME = "purchase_price_time";
184
-
185
-    public static final String PURCHASE_PRICE_SUM = "purchase_price_sum";
186
-
187
-    public static final String MIN_PURCHASE_PRICE = "min_purchase_price";
188
-
189
-    public static final String LAST_PURCHASE_PRICE = "last_purchase_price";
190
-
191
-    public static final String PURCHASE_PRICE_AVG = "purchase_price_avg";
192
-
193
-    public static final String DIRECT_MATERIAL_COST = "direct_material_cost";
194
-
195
-    public static final String PROCESS_COST = "process_cost";
196
-
197
-    public static final String TRANSPORT_COST = "transport_cost";
198
-
199
-    public static final String MOULD_COST = "mould_cost";
200
-
201
-    public static final String ORTHER_COST = "orther_cost";
202
-
203
-    public static final String TAX_TATE = "tax_tate";
204
-
205
-    public static final String CREATE_BY = "create_by";
206
-
207
-    public static final String CREATE_TIME = "create_time";
208
-
209
-    public static final String UPDATE_BY = "update_by";
210
-
211
-    public static final String UPDATE_TIME = "update_time";
212
-
213
-    public static final String REMARK = "remark";
214
-
215
-}

+ 0
- 99
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/entity/HourRate.java Wyświetl plik

@@ -1,99 +0,0 @@
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
-
8
-import com.baomidou.mybatisplus.annotation.*;
9
-import lombok.Data;
10
-import com.fasterxml.jackson.annotation.JsonFormat;
11
-import org.springframework.format.annotation.DateTimeFormat;
12
-import org.jeecgframework.poi.excel.annotation.Excel;
13
-import org.jeecg.common.aspect.annotation.Dict;
14
-import io.swagger.annotations.ApiModel;
15
-import io.swagger.annotations.ApiModelProperty;
16
-import lombok.EqualsAndHashCode;
17
-import lombok.experimental.Accessors;
18
-
19
-/**
20
- * @Description: hour_rate
21
- * @Author: jeecg-boot
22
- * @Date:   2024-06-06
23
- * @Version: V1.0
24
- */
25
-@Data
26
-@TableName("app_scene_cost_hour_rate")
27
-@Accessors(chain = true)
28
-@EqualsAndHashCode(callSuper = false)
29
-@ApiModel(value="hour_rate对象", description="hour_rate")
30
-public class HourRate implements Serializable {
31
-    private static final long serialVersionUID = 1L;
32
-
33
-	/**年度*/
34
-	@Excel(name = "年度", width = 15)
35
-    @ApiModelProperty(value = "年度")
36
-    private java.lang.String year;
37
-	/**成本中心代码*/
38
-	@Excel(name = "成本中心代码", width = 15)
39
-    @ApiModelProperty(value = "成本中心代码")
40
-    private java.lang.String costCenterCode;
41
-	/**工厂代码*/
42
-	@Excel(name = "工厂代码", width = 15)
43
-    @ApiModelProperty(value = "工厂代码")
44
-    private java.lang.String factory;
45
-	/**人工小时费率*/
46
-	@Excel(name = "人工小时费率", width = 15)
47
-    @ApiModelProperty(value = "人工小时费率")
48
-    private java.math.BigDecimal laborHourRate;
49
-	/**设备小时费率*/
50
-	@Excel(name = "设备小时费率", width = 15)
51
-    @ApiModelProperty(value = "设备小时费率")
52
-    private java.math.BigDecimal equipHourRate;
53
-	/**燃动小时费率*/
54
-	@Excel(name = "燃动小时费率", width = 15)
55
-    @ApiModelProperty(value = "燃动小时费率")
56
-    private java.math.BigDecimal fuelHourRate;
57
-	/**辅料小时费率*/
58
-	@Excel(name = "辅料小时费率", width = 15)
59
-    @ApiModelProperty(value = "辅料小时费率")
60
-    private java.math.BigDecimal auxiliaryHourRate;
61
-	/**其他小时费率*/
62
-	@Excel(name = "其他小时费率", width = 15)
63
-    @ApiModelProperty(value = "其他小时费率")
64
-    private java.math.BigDecimal otherHourRate;
65
-	/**生效日期*/
66
-	@Excel(name = "生效日期", width = 15, format = "yyyy-MM-dd")
67
-	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
68
-    @DateTimeFormat(pattern="yyyy-MM-dd")
69
-    @ApiModelProperty(value = "生效日期")
70
-    private java.util.Date effectiveDate;
71
-	/**失效日期*/
72
-	@Excel(name = "失效日期", width = 15, format = "yyyy-MM-dd")
73
-	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
74
-    @DateTimeFormat(pattern="yyyy-MM-dd")
75
-    @ApiModelProperty(value = "失效日期")
76
-    private java.util.Date expirationDate;
77
-	/**维护人员*/
78
-	@Excel(name = "维护人员", width = 15)
79
-    @ApiModelProperty(value = "维护人员")
80
-    private java.lang.String guardian;
81
-	/**维护时间*/
82
-	@Excel(name = "维护时间", width = 15)
83
-    @ApiModelProperty(value = "维护时间")
84
-    private java.lang.String maintenanceTime;
85
-	/**预留字段1*/
86
-	@Excel(name = "预留字段1", width = 15)
87
-    @ApiModelProperty(value = "预留字段1")
88
-    @TableField(value = "reserve_1")
89
-    private java.lang.String reserve1;
90
-	/**预留字段2*/
91
-	@Excel(name = "预留字段2", width = 15)
92
-    @ApiModelProperty(value = "预留字段2")
93
-    @TableField(value = "reserve_2")
94
-    private java.math.BigDecimal reserve2;
95
-	/**主键*/
96
-	@TableId(type = IdType.ASSIGN_ID)
97
-    @ApiModelProperty(value = "主键")
98
-    private java.lang.String id;
99
-}

+ 14
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostHourRateMapper.java Wyświetl plik

@@ -0,0 +1,14 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostHourRate;
5
+
6
+/**
7
+ * @Description: app_scene_cost_hour_rate
8
+ * @Author: jeecg-boot
9
+ * @Date: 2024-08-02
10
+ * @Version: V1.0
11
+ */
12
+public interface AppSceneCostHourRateMapper extends BaseMapper<AppSceneCostHourRate> {
13
+
14
+}

qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/CostMaterialBomMapper.java → qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMaterialBomMapper.java Wyświetl plik

@@ -2,24 +2,19 @@ package com.zzsmart.qomo.kn.cost.manage.mapper;
2 2
 
3 3
 import com.alibaba.fastjson.JSONObject;
4 4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
-import com.zzsmart.qomo.kn.cost.manage.entity.CostMaterialBom;
6
-import org.apache.ibatis.annotations.Mapper;
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMaterialBom;
7 6
 import org.apache.ibatis.annotations.Param;
8 7
 import org.apache.ibatis.annotations.Select;
9 8
 
10
-import java.sql.Blob;
11 9
 import java.util.List;
12 10
 
13 11
 /**
14
- * <p>
15
- * 物料bom Mapper 接口
16
- * </p>
17
- *
18
- * @author
19
- * @since 2024-06-21
12
+ * @Description: app_scene_cost_material_bom
13
+ * @Author: jeecg-boot
14
+ * @Date: 2024-08-02
15
+ * @Version: V1.0
20 16
  */
21
-@Mapper
22
-public interface CostMaterialBomMapper extends BaseMapper<CostMaterialBom> {
17
+public interface AppSceneCostMaterialBomMapper extends BaseMapper<AppSceneCostMaterialBom> {
23 18
     /**
24 19
      * 根据动态SQL语句查询物料BOM表
25 20
      *
@@ -27,11 +22,13 @@ public interface CostMaterialBomMapper extends BaseMapper<CostMaterialBom> {
27 22
      * @return
28 23
      */
29 24
     @Select("${selectCommand}")
30
-    List<CostMaterialBom> customSelect(@Param("selectCommand") String selectCommand);
25
+    List<AppSceneCostMaterialBom> customSelect(@Param("selectCommand") String selectCommand);
31 26
 
32 27
 
33 28
     @Select("${selectSql}")
34 29
     JSONObject customSelectOne(@Param("selectSql") String selectSql);
30
+
35 31
     @Select("${SelectBlobModel}")
36 32
     String customSelectBlobModelJson(@Param("SelectBlobModel") String SelectBlobModel);
33
+
37 34
 }

+ 14
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMaterialProcessHoursMapper.java Wyświetl plik

@@ -0,0 +1,14 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMaterialProcessHours;
5
+
6
+/**
7
+ * @Description: app_scene_cost_material_process_hours
8
+ * @Author: jeecg-boot
9
+ * @Date: 2024-08-02
10
+ * @Version: V1.0
11
+ */
12
+public interface AppSceneCostMaterialProcessHoursMapper extends BaseMapper<AppSceneCostMaterialProcessHours> {
13
+
14
+}

+ 14
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostPartMissingInfoMapper.java Wyświetl plik

@@ -0,0 +1,14 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPartMissingInfo;
5
+
6
+/**
7
+ * @Description: app_scene_cost_part_missing_info
8
+ * @Author: jeecg-boot
9
+ * @Date: 2024-08-02
10
+ * @Version: V1.0
11
+ */
12
+public interface AppSceneCostPartMissingInfoMapper extends BaseMapper<AppSceneCostPartMissingInfo> {
13
+
14
+}

+ 14
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostPurchasePriceMapper.java Wyświetl plik

@@ -0,0 +1,14 @@
1
+package com.zzsmart.qomo.kn.cost.manage.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPurchasePrice;
5
+
6
+/**
7
+ * @Description: app_scene_cost_purchase_price
8
+ * @Author: jeecg-boot
9
+ * @Date: 2024-08-02
10
+ * @Version: V1.0
11
+ */
12
+public interface AppSceneCostPurchasePriceMapper extends BaseMapper<AppSceneCostPurchasePrice> {
13
+
14
+}

+ 17
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostStandardVersionMapper.java Wyświetl plik

@@ -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.AppSceneCostStandardVersion;
6
+import org.apache.ibatis.annotations.Param;
7
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
8
+
9
+/**
10
+ * @Description: app_scene_cost_standard_version
11
+ * @Author: jeecg-boot
12
+ * @Date:   2024-08-02
13
+ * @Version: V1.0
14
+ */
15
+public interface AppSceneCostStandardVersionMapper extends BaseMapper<AppSceneCostStandardVersion> {
16
+
17
+}

+ 0
- 18
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/CostMaterialProcessHoursMapper.java Wyświetl plik

@@ -1,18 +0,0 @@
1
-package com.zzsmart.qomo.kn.cost.manage.mapper;
2
-
3
-import com.zzsmart.qomo.kn.cost.manage.entity.CostMaterialProcessHours;
4
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
-import org.apache.ibatis.annotations.Mapper;
6
-
7
-/**
8
- * <p>
9
- * 物料工时工序表 Mapper 接口
10
- * </p>
11
- *
12
- * @author  
13
- * @since 2024-06-19
14
- */
15
-@Mapper
16
-public interface CostMaterialProcessHoursMapper extends BaseMapper<CostMaterialProcessHours> {
17
-
18
-}

+ 0
- 18
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/CostPartMissingInfoMapper.java Wyświetl plik

@@ -1,18 +0,0 @@
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.CostPartMissingInfo;
6
-import org.apache.ibatis.annotations.Param;
7
-
8
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
9
-
10
-/**
11
- * @Description: 标准成本-部件缺失信息
12
- * @Author: wangqiong
13
- * @Date:   2024-06-13
14
- * @Version: V1.0
15
- */
16
-public interface CostPartMissingInfoMapper extends BaseMapper<CostPartMissingInfo> {
17
-
18
-}

+ 0
- 18
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/CostPurchasePriceMapper.java Wyświetl plik

@@ -1,18 +0,0 @@
1
-package com.zzsmart.qomo.kn.cost.manage.mapper;
2
-
3
-import com.zzsmart.qomo.kn.cost.manage.entity.CostPurchasePrice;
4
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
-import org.apache.ibatis.annotations.Mapper;
6
-
7
-/**
8
- * <p>
9
- * 物料采购单价 Mapper 接口
10
- * </p>
11
- *
12
- * @author  
13
- * @since 2024-06-19
14
- */
15
-@Mapper
16
-public interface CostPurchasePriceMapper extends BaseMapper<CostPurchasePrice> {
17
-
18
-}

+ 0
- 18
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/CostStandardVersionMapper.java Wyświetl plik

@@ -1,18 +0,0 @@
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.CostStandardVersion;
6
-import org.apache.ibatis.annotations.Param;
7
-
8
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
9
-
10
-/**
11
- * @Description: 标准成本-版本号
12
- * @Author: wangqiong
13
- * @Date:   2024-06-13
14
- * @Version: V1.0
15
- */
16
-public interface CostStandardVersionMapper extends BaseMapper<CostStandardVersion> {
17
-
18
-}

+ 0
- 14
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/HourRateMapper.java Wyświetl plik

@@ -1,14 +0,0 @@
1
-package com.zzsmart.qomo.kn.cost.manage.mapper;
2
-
3
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
-import com.zzsmart.qomo.kn.cost.manage.entity.HourRate;
5
-
6
-/**
7
- * @Description: hour_rate
8
- * @Author: jeecg-boot
9
- * @Date:   2024-06-06
10
- * @Version: V1.0
11
- */
12
-public interface HourRateMapper extends BaseMapper<HourRate> {
13
-
14
-}

qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/CostStandardVersionMapper.xml → qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostHourRateMapper.xml Wyświetl plik

@@ -1,5 +1,5 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 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.kn.cost.manage.mapper.CostStandardVersionMapper">
3
+<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostHourRateMapper">
4 4
 
5 5
 </mapper>

qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/CostPartMissingInfoMapper.xml → qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMaterialBomMapper.xml Wyświetl plik

@@ -1,5 +1,5 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 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.kn.cost.manage.mapper.CostPartMissingInfoMapper">
3
+<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostMaterialBomMapper">
4 4
 
5 5
 </mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMaterialProcessHoursMapper.xml Wyświetl plik

@@ -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.kn.cost.manage.mapper.AppSceneCostMaterialProcessHoursMapper">
4
+
5
+</mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostPartMissingInfoMapper.xml Wyświetl plik

@@ -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.kn.cost.manage.mapper.AppSceneCostPartMissingInfoMapper">
4
+
5
+</mapper>

qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/HourRateMapper.xml → qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostPurchasePriceMapper.xml Wyświetl plik

@@ -1,5 +1,5 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 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.kn.cost.manage.mapper.HourRateMapper">
3
+<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostPurchasePriceMapper">
4 4
 
5 5
 </mapper>

+ 1
- 1
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostStandardDetailMapper.xml Wyświetl plik

@@ -1,5 +1,5 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 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.AppSceneCostStandardDetailMapper">
3
+<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostStandardDetailMapper">
4 4
 
5 5
 </mapper>

+ 5
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostStandardVersionMapper.xml Wyświetl plik

@@ -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.kn.cost.manage.mapper.AppSceneCostStandardVersionMapper">
4
+
5
+</mapper>

+ 0
- 52
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/CostMaterialBomMapper.xml Wyświetl plik

@@ -1,52 +0,0 @@
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.kn.cost.manage.mapper.CostMaterialBomMapper">
4
-
5
-    <!-- 通用查询映射结果 -->
6
-    <resultMap id="BaseResultMap" type="com.zzsmart.qomo.kn.cost.manage.entity.CostMaterialBom">
7
-        <id column="id" property="id" />
8
-        <result column="material_code" property="materialCode" />
9
-        <result column="material_name" property="materialName" />
10
-        <result column="parent_material_code" property="parentMaterialCode" />
11
-        <result column="level" property="level" />
12
-        <result column="sort" property="sort" />
13
-        <result column="unit" property="unit" />
14
-        <result column="number" property="number" />
15
-        <result column="labor_hours" property="laborHours" />
16
-        <result column="device_hours" property="deviceHours" />
17
-        <result column="borrow_material_code" property="borrowMaterialCode" />
18
-        <result column="refer_material_code" property="referMaterialCode" />
19
-        <result column="purchase_type" property="purchaseType" />
20
-        <result column="special_purchase_type" property="specialPurchaseType" />
21
-        <result column="explanation" property="explanation" />
22
-        <result column="quantity" property="quantity" />
23
-        <result column="weight" property="weight" />
24
-        <result column="material_and_brand" property="materialAndBrand" />
25
-        <result column="surface_material" property="surfaceMaterial" />
26
-        <result column="surface_thickness" property="surfaceThickness" />
27
-        <result column="surface_area" property="surfaceArea" />
28
-        <result column="length" property="length" />
29
-        <result column="width" property="width" />
30
-        <result column="height" property="height" />
31
-        <result column="figure_file_id" property="figureFileId" />
32
-        <result column="new_tooling" property="newTooling" />
33
-        <result column="shaping_method" property="shapingMethod" />
34
-        <result column="work_content" property="workContent" />
35
-        <result column="process_location" property="processLocation" />
36
-        <result column="cost_center" property="costCenter" />
37
-        <result column="unit_price" property="unitPrice" />
38
-        <result column="total_price" property="totalPrice" />
39
-        <result column="mould_price" property="mouldPrice" />
40
-        <result column="create_by" property="createBy" />
41
-        <result column="create_time" property="createTime" />
42
-        <result column="update_by" property="updateBy" />
43
-        <result column="update_time" property="updateTime" />
44
-        <result column="remark" property="remark" />
45
-    </resultMap>
46
-
47
-    <!-- 通用查询结果列 -->
48
-    <sql id="Base_Column_List">
49
-        id, material_code, material_name, parent_material_code, level, sort, unit, number, labor_hours, device_hours, borrow_material_code, refer_material_code, purchase_type, special_purchase_type, explanation, quantity, weight, material_and_brand, surface_material, surface_thickness, surface_area, length, width, height, figure_file_id, new_tooling, shaping_method, work_content, process_location, cost_center, unit_price, total_price, mould_price, create_by, create_time, update_by, update_time, remark
50
-    </sql>
51
-
52
-</mapper>

+ 0
- 30
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/CostMaterialProcessHoursMapper.xml Wyświetl plik

@@ -1,30 +0,0 @@
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.kn.cost.manage.mapper.CostMaterialProcessHoursMapper">
4
-
5
-    <!-- 通用查询映射结果 -->
6
-    <resultMap id="BaseResultMap" type="com.zzsmart.qomo.kn.cost.manage.entity.CostMaterialProcessHours">
7
-        <id column="id" property="id" />
8
-        <result column="material_code" property="materialCode" />
9
-        <result column="material_name" property="materialName" />
10
-        <result column="level" property="level" />
11
-        <result column="quantity" property="quantity" />
12
-        <result column="purchase_type" property="purchaseType" />
13
-        <result column="work_process" property="workProcess" />
14
-        <result column="described" property="described" />
15
-        <result column="labor_hours" property="laborHours" />
16
-        <result column="device_hours" property="deviceHours" />
17
-        <result column="work_center" property="workCenter" />
18
-        <result column="create_by" property="createBy" />
19
-        <result column="create_time" property="createTime" />
20
-        <result column="update_by" property="updateBy" />
21
-        <result column="update_time" property="updateTime" />
22
-        <result column="remark" property="remark" />
23
-    </resultMap>
24
-
25
-    <!-- 通用查询结果列 -->
26
-    <sql id="Base_Column_List">
27
-        id, material_code, material_name, level, quantity, purchase_type, work_process, described, labor_hours, device_hours, work_center, create_by, create_time, update_by, update_time, remark
28
-    </sql>
29
-
30
-</mapper>

+ 0
- 37
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/CostPurchasePriceMapper.xml Wyświetl plik

@@ -1,37 +0,0 @@
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.kn.cost.manage.mapper.CostPurchasePriceMapper">
4
-
5
-    <!-- 通用查询映射结果 -->
6
-    <resultMap id="BaseResultMap" type="com.zzsmart.qomo.kn.cost.manage.entity.CostPurchasePrice">
7
-        <id column="id" property="id" />
8
-        <result column="material_code" property="materialCode" />
9
-        <result column="material_name" property="materialName" />
10
-        <result column="specification" property="specification" />
11
-        <result column="purchase_type" property="purchaseType" />
12
-        <result column="supplier_code" property="supplierCode" />
13
-        <result column="supplier_name" property="supplierName" />
14
-        <result column="purchase_price_time" property="purchasePriceTime" />
15
-        <result column="purchase_price_sum" property="purchasePriceSum" />
16
-        <result column="min_purchase_price" property="minPurchasePrice" />
17
-        <result column="last_purchase_price" property="lastPurchasePrice" />
18
-        <result column="purchase_price_avg" property="purchasePriceAvg" />
19
-        <result column="direct_material_cost" property="directMaterialCost" />
20
-        <result column="process_cost" property="processCost" />
21
-        <result column="transport_cost" property="transportCost" />
22
-        <result column="mould_cost" property="mouldCost" />
23
-        <result column="orther_cost" property="ortherCost" />
24
-        <result column="tax_tate" property="taxTate" />
25
-        <result column="create_by" property="createBy" />
26
-        <result column="create_time" property="createTime" />
27
-        <result column="update_by" property="updateBy" />
28
-        <result column="update_time" property="updateTime" />
29
-        <result column="remark" property="remark" />
30
-    </resultMap>
31
-
32
-    <!-- 通用查询结果列 -->
33
-    <sql id="Base_Column_List">
34
-        id, material_code, material_name, specification, purchase_type, supplier_code, supplier_name, purchase_price_time, purchase_price_sum, min_purchase_price, last_purchase_price, purchase_price_avg, direct_material_cost, process_cost, transport_cost, mould_cost, orther_cost, tax_tate, create_by, create_time, update_by, update_time, remark
35
-    </sql>
36
-
37
-</mapper>

+ 22
- 22
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/StandardCostService.java Wyświetl plik

@@ -6,7 +6,7 @@ import com.zzsmart.qomo.kn.cost.manage.entity.*;
6 6
 import com.zzsmart.qomo.kn.cost.manage.enums.FeeTypeEnum;
7 7
 import com.zzsmart.qomo.kn.cost.manage.enums.HourOrRateTypeEnum;
8 8
 import com.zzsmart.qomo.kn.cost.manage.enums.TotalCostEnum;
9
-import com.zzsmart.qomo.kn.cost.manage.mapper.CostMaterialBomMapper;
9
+import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostMaterialBomMapper;
10 10
 import com.zzsmart.qomo.kn.cost.manage.service.*;
11 11
 import com.zzsmart.qomo.kn.cost.manage.vo.FlowTaskInfoVO;
12 12
 import com.zzsmart.qomo.kn.cost.manage.vo.TotalResultValue;
@@ -32,25 +32,25 @@ public class StandardCostService {
32 32
      * 物料BOM信息
33 33
      */
34 34
     @Autowired
35
-    CostMaterialBomMapper costMaterialBomMapper;
35
+    AppSceneCostMaterialBomMapper costMaterialBomMapper;
36 36
     @Autowired
37
-    CostMaterialBomService costMaterialBomService;
37
+    IAppSceneCostMaterialBomService costMaterialBomService;
38 38
 
39 39
     /**
40 40
      * 小时费率
41 41
      */
42 42
     @Autowired
43
-    IHourRateService iHourRateService;
43
+    IAppSceneCostHourRateService iHourRateService;
44 44
     /**
45 45
      * 采购单价
46 46
      */
47 47
     @Autowired
48
-    CostPurchasePriceService costPurchasePriceService;
48
+    IAppSceneCostPurchasePriceService costPurchasePriceService;
49 49
     /**
50 50
      * 工序
51 51
      */
52 52
     @Autowired
53
-    CostMaterialProcessHoursService costMaterialProcessHoursService;
53
+    IAppSceneCostMaterialProcessHoursService costMaterialProcessHoursService;
54 54
     /**
55 55
      * 标准成本计算结果
56 56
      */
@@ -111,11 +111,11 @@ public class StandardCostService {
111 111
             String sql = flowTaskInfoVO.getSqlString();
112 112
             log.info("传递过来的SQL语句:" + sql);
113 113
             //TODO 查询最顶部的BOM物料编号下所有的物料并进行层级排序
114
-            List<CostMaterialBom> list = standardCostService.costMaterialBomService.queryAllBomInfoBytopMaterialCode(topMaterialCode);
114
+            List<AppSceneCostMaterialBom> list = standardCostService.costMaterialBomService.queryAllBomInfoBytopMaterialCode(topMaterialCode);
115 115
             log.info("Full EmptyTask list: {}", list);
116 116
             //2.把查询的结果存放在临时表里(表命名规则:前缀_流程id_组件code)
117 117
             for (int i = 0; list != null && i < list.size(); i++) {
118
-                CostMaterialBom material = list.get(i);
118
+                AppSceneCostMaterialBom material = list.get(i);
119 119
                 AppSceneCostResultValue appSceneCostResultValue = AppSceneCostResultValue.builder().belongTopMaterialNo(topMaterialCode).marterialNo(material.getMaterialCode()).parentMarterialNo(material.getParentMaterialCode()).taskType(taskType).taskCode(taskCode).flowInstanceId(flowInstanceId).num(material.getNumber()).build();
120 120
                 standardCostService.iAppSceneCostResultValueService.save(appSceneCostResultValue);
121 121
             }
@@ -271,7 +271,7 @@ public class StandardCostService {
271 271
             JSONObject jsonObject = standardCostService.costMaterialBomMapper.customSelectOne(sql);
272 272
             BigDecimal hourRate = new BigDecimal("0");
273 273
             if (jsonObject != null) {
274
-                HourRate rate = JSON.toJavaObject(jsonObject, HourRate.class);
274
+                AppSceneCostHourRate rate = JSON.toJavaObject(jsonObject, AppSceneCostHourRate.class);
275 275
                 hourRate = rate.getLaborHourRate();
276 276
             }
277 277
             //1.查询出物料编号对应的下所有的BOM信息
@@ -283,17 +283,17 @@ public class StandardCostService {
283 283
                 MarterialNoList = list.stream().filter(s -> s.getMarterialNo() != null).map(AppSceneCostResultValue::getMarterialNo).collect(Collectors.toList());
284 284
             }
285 285
             //查询工序工时
286
-            Map<String, List<CostMaterialProcessHours>> processHoursMap = standardCostService.costMaterialProcessHoursService.getProcessHoursByMaterialNo(MarterialNoList);
286
+            Map<String, List<AppSceneCostMaterialProcessHours>> processHoursMap = standardCostService.costMaterialProcessHoursService.getProcessHoursByMaterialNo(MarterialNoList);
287 287
             for (int i = 0; i < list.size(); i++) {
288 288
                 AppSceneCostResultValue appSceneCostResultValue = list.get(i);
289 289
                 String marterialNo = appSceneCostResultValue.getMarterialNo();
290 290
                 if (marterialNo != null) {
291 291
                     BigDecimal totalCost = new BigDecimal("0.0");
292 292
                     BigDecimal laborHours = new BigDecimal("0.0");
293
-                    List<CostMaterialProcessHours> costMaterialProcessHours = processHoursMap.get(marterialNo);
293
+                    List<AppSceneCostMaterialProcessHours> costMaterialProcessHours = processHoursMap.get(marterialNo);
294 294
                     if (costMaterialProcessHours != null && costMaterialProcessHours.size() > 0) {
295 295
                         for (int j = 0; j < costMaterialProcessHours.size(); j++) {
296
-                            CostMaterialProcessHours processHours = costMaterialProcessHours.get(j);
296
+                            AppSceneCostMaterialProcessHours processHours = costMaterialProcessHours.get(j);
297 297
                             laborHours = laborHours.add(processHours.getLaborHours());
298 298
                             //计算总人工成本
299 299
                             totalCost = totalCost.add(processHours.getLaborHours().multiply(hourRate));
@@ -339,7 +339,7 @@ public class StandardCostService {
339 339
             JSONObject jsonObject = standardCostService.costMaterialBomMapper.customSelectOne(sql);
340 340
             BigDecimal hourRate = new BigDecimal("0");
341 341
             if (jsonObject != null) {
342
-                HourRate rate = JSON.toJavaObject(jsonObject, HourRate.class);
342
+                AppSceneCostHourRate rate = JSON.toJavaObject(jsonObject, AppSceneCostHourRate.class);
343 343
                 hourRate = rate.getLaborHourRate();
344 344
             }
345 345
             //1.查询出物料编号对应的下所有的BOM信息
@@ -350,7 +350,7 @@ public class StandardCostService {
350 350
             if (list != null && list.size() > 0) {
351 351
                 MarterialNoList = list.stream().filter(s -> s.getMarterialNo() != null).map(AppSceneCostResultValue::getMarterialNo).collect(Collectors.toList());
352 352
             }
353
-            Map<String, List<CostMaterialProcessHours>> processHoursMap = standardCostService.costMaterialProcessHoursService.getProcessHoursByMaterialNo(MarterialNoList);
353
+            Map<String, List<AppSceneCostMaterialProcessHours>> processHoursMap = standardCostService.costMaterialProcessHoursService.getProcessHoursByMaterialNo(MarterialNoList);
354 354
             //2.1机器折旧费(机器工时*费率)
355 355
             if (FeeTypeEnum.EquipmentFee.getCode().equals(feeType)) {
356 356
                 for (int i = 0; i < list.size(); i++) {
@@ -359,10 +359,10 @@ public class StandardCostService {
359 359
                     if (marterialNo != null) {
360 360
                         BigDecimal totalCost = new BigDecimal("0.0");
361 361
                         BigDecimal laborHours = new BigDecimal("0.0");
362
-                        List<CostMaterialProcessHours> costMaterialProcessHours = processHoursMap.get(marterialNo);
362
+                        List<AppSceneCostMaterialProcessHours> costMaterialProcessHours = processHoursMap.get(marterialNo);
363 363
                         if (costMaterialProcessHours != null && costMaterialProcessHours.size() > 0) {
364 364
                             for (int j = 0; j < costMaterialProcessHours.size(); j++) {
365
-                                CostMaterialProcessHours processHours = costMaterialProcessHours.get(j);
365
+                                AppSceneCostMaterialProcessHours processHours = costMaterialProcessHours.get(j);
366 366
                                 laborHours = laborHours.add(processHours.getDeviceHours());
367 367
                                 //计算机器成本
368 368
                                 totalCost = totalCost.add(processHours.getDeviceHours().multiply(hourRate));
@@ -381,10 +381,10 @@ public class StandardCostService {
381 381
                     if (marterialNo != null) {
382 382
                         BigDecimal totalCost = new BigDecimal("0.0");
383 383
                         BigDecimal laborHours = new BigDecimal("0.0");
384
-                        List<CostMaterialProcessHours> costMaterialProcessHours = processHoursMap.get(marterialNo);
384
+                        List<AppSceneCostMaterialProcessHours> costMaterialProcessHours = processHoursMap.get(marterialNo);
385 385
                         if (costMaterialProcessHours != null && costMaterialProcessHours.size() > 0) {
386 386
                             for (int j = 0; j < costMaterialProcessHours.size(); j++) {
387
-                                CostMaterialProcessHours processHours = costMaterialProcessHours.get(j);
387
+                                AppSceneCostMaterialProcessHours processHours = costMaterialProcessHours.get(j);
388 388
                                 //TODO 辅料工时来源
389 389
                                 laborHours = laborHours.add(processHours.getDeviceHours());
390 390
                                 //机物料消耗
@@ -404,10 +404,10 @@ public class StandardCostService {
404 404
                     if (marterialNo != null) {
405 405
                         BigDecimal totalCost = new BigDecimal("0.0");
406 406
                         BigDecimal laborHours = new BigDecimal("0.0");
407
-                        List<CostMaterialProcessHours> costMaterialProcessHours = processHoursMap.get(marterialNo);
407
+                        List<AppSceneCostMaterialProcessHours> costMaterialProcessHours = processHoursMap.get(marterialNo);
408 408
                         if (costMaterialProcessHours != null && costMaterialProcessHours.size() > 0) {
409 409
                             for (int j = 0; j < costMaterialProcessHours.size(); j++) {
410
-                                CostMaterialProcessHours processHours = costMaterialProcessHours.get(j);
410
+                                AppSceneCostMaterialProcessHours processHours = costMaterialProcessHours.get(j);
411 411
                                 //TODO 燃动力工时来源
412 412
                                 laborHours = laborHours.add(processHours.getDeviceHours());
413 413
                                 //水电费(燃动力工时*费率)成本
@@ -427,10 +427,10 @@ public class StandardCostService {
427 427
                     if (marterialNo != null) {
428 428
                         BigDecimal totalCost = new BigDecimal("0.0");
429 429
                         BigDecimal laborHours = new BigDecimal("0.0");
430
-                        List<CostMaterialProcessHours> costMaterialProcessHours = processHoursMap.get(marterialNo);
430
+                        List<AppSceneCostMaterialProcessHours> costMaterialProcessHours = processHoursMap.get(marterialNo);
431 431
                         if (costMaterialProcessHours != null && costMaterialProcessHours.size() > 0) {
432 432
                             for (int j = 0; j < costMaterialProcessHours.size(); j++) {
433
-                                CostMaterialProcessHours processHours = costMaterialProcessHours.get(j);
433
+                                AppSceneCostMaterialProcessHours processHours = costMaterialProcessHours.get(j);
434 434
                                 //TODO 其他工时来源
435 435
                                 laborHours = laborHours.add(processHours.getDeviceHours());
436 436
                                 //其他制费成本

+ 0
- 30
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/CostMaterialBomService.java Wyświetl plik

@@ -1,30 +0,0 @@
1
-package com.zzsmart.qomo.kn.cost.manage.service;
2
-
3
-import com.zzsmart.qomo.kn.cost.manage.entity.CostMaterialBom;
4
-import com.baomidou.mybatisplus.extension.service.IService;
5
-
6
-import java.util.List;
7
-
8
-/**
9
- * <p>
10
- * 物料bom 服务类
11
- * </p>
12
- *
13
- * @author
14
- * @since 2024-06-21
15
- */
16
-public interface CostMaterialBomService extends IService<CostMaterialBom> {
17
-    /**
18
-     * 分页查询
19
-     * @param
20
-     * @return
21
-     */
22
-    List<CostMaterialBom> queryListResult(String materialNumber);
23
-
24
-    /**
25
-     * 查询最顶层物料编号下所有的物料
26
-     * @param topMaterialCode
27
-     * @return
28
-     */
29
-    List<CostMaterialBom> queryAllBomInfoBytopMaterialCode(String topMaterialCode);
30
-}

+ 0
- 22
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/CostMaterialProcessHoursService.java Wyświetl plik

@@ -1,22 +0,0 @@
1
-package com.zzsmart.qomo.kn.cost.manage.service;
2
-
3
-import com.zzsmart.qomo.kn.cost.manage.entity.CostMaterialProcessHours;
4
-import com.baomidou.mybatisplus.extension.service.IService;
5
-
6
-import java.util.List;
7
-import java.util.Map;
8
-
9
-/**
10
- * <p>
11
- * 物料工时工序表 服务类
12
- * </p>
13
- *
14
- * @author  
15
- * @since 2024-06-19
16
- */
17
-public interface CostMaterialProcessHoursService extends IService<CostMaterialProcessHours> {
18
-/**
19
- * 查询满足物料编号的工时工序
20
- */
21
- Map<String,List<CostMaterialProcessHours>> getProcessHoursByMaterialNo(List<String> materialNos);
22
-}

+ 14
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostHourRateService.java Wyświetl plik

@@ -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.AppSceneCostHourRate;
5
+
6
+/**
7
+ * @Description: app_scene_cost_hour_rate
8
+ * @Author: jeecg-boot
9
+ * @Date:   2024-08-02
10
+ * @Version: V1.0
11
+ */
12
+public interface IAppSceneCostHourRateService extends IService<AppSceneCostHourRate> {
13
+
14
+}

+ 28
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostMaterialBomService.java Wyświetl plik

@@ -0,0 +1,28 @@
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.AppSceneCostMaterialBom;
5
+
6
+import java.util.List;
7
+
8
+/**
9
+ * @Description: app_scene_cost_material_bom
10
+ * @Author: jeecg-boot
11
+ * @Date:   2024-08-02
12
+ * @Version: V1.0
13
+ */
14
+public interface IAppSceneCostMaterialBomService extends IService<AppSceneCostMaterialBom> {
15
+    /**
16
+     * 分页查询
17
+     * @param
18
+     * @return
19
+     */
20
+    List<AppSceneCostMaterialBom> queryListResult(String materialNumber);
21
+
22
+    /**
23
+     * 查询最顶层物料编号下所有的物料
24
+     * @param topMaterialCode
25
+     * @return
26
+     */
27
+    List<AppSceneCostMaterialBom> queryAllBomInfoBytopMaterialCode(String topMaterialCode);
28
+}

+ 22
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostMaterialProcessHoursService.java Wyświetl plik

@@ -0,0 +1,22 @@
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.AppSceneCostMaterialProcessHours;
5
+import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostMaterialProcessHoursMapper;
6
+
7
+import java.util.List;
8
+import java.util.Map;
9
+
10
+/**
11
+ * @Description: app_scene_cost_material_process_hours
12
+ * @Author: jeecg-boot
13
+ * @Date:   2024-08-02
14
+ * @Version: V1.0
15
+ */
16
+public interface IAppSceneCostMaterialProcessHoursService extends IService<AppSceneCostMaterialProcessHours> {
17
+    /**
18
+     * 查询满足物料编号的工时工序
19
+     */
20
+    Map<String, List<AppSceneCostMaterialProcessHours>> getProcessHoursByMaterialNo(List<String> materialNos);
21
+
22
+}

+ 14
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostPartMissingInfoService.java Wyświetl plik

@@ -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.AppSceneCostPartMissingInfo;
5
+
6
+/**
7
+ * @Description: app_scene_cost_part_missing_info
8
+ * @Author: jeecg-boot
9
+ * @Date: 2024-08-02
10
+ * @Version: V1.0
11
+ */
12
+public interface IAppSceneCostPartMissingInfoService extends IService<AppSceneCostPartMissingInfo> {
13
+
14
+}

qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/CostPurchasePriceService.java → qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostPurchasePriceService.java Wyświetl plik

@@ -1,24 +1,22 @@
1 1
 package com.zzsmart.qomo.kn.cost.manage.service;
2 2
 
3
-import com.zzsmart.qomo.kn.cost.manage.entity.CostMaterialProcessHours;
4
-import com.zzsmart.qomo.kn.cost.manage.entity.CostPurchasePrice;
5 3
 import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPurchasePrice;
6 5
 
7 6
 import java.math.BigDecimal;
8 7
 import java.util.List;
9 8
 import java.util.Map;
10 9
 
11 10
 /**
12
- * <p>
13
- * 物料采购单价 服务类
14
- * </p>
15
- *
16
- * @author  
17
- * @since 2024-06-19
11
+ * @Description: app_scene_cost_purchase_price
12
+ * @Author: jeecg-boot
13
+ * @Date:   2024-08-02
14
+ * @Version: V1.0
18 15
  */
19
-public interface CostPurchasePriceService extends IService<CostPurchasePrice> {
16
+public interface IAppSceneCostPurchasePriceService extends IService<AppSceneCostPurchasePrice> {
20 17
     /**
21 18
      * 查询满足物料编号的最低采购价
22 19
      */
23 20
     Map<String, BigDecimal> getMinCostPurchasePriceByMaterialNo(List<String> materialNos);
21
+
24 22
 }

+ 14
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IAppSceneCostStandardVersionService.java Wyświetl plik

@@ -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.AppSceneCostStandardVersion;
5
+
6
+/**
7
+ * @Description: app_scene_cost_standard_version
8
+ * @Author: jeecg-boot
9
+ * @Date:   2024-08-02
10
+ * @Version: V1.0
11
+ */
12
+public interface IAppSceneCostStandardVersionService extends IService<AppSceneCostStandardVersion> {
13
+
14
+}

+ 0
- 14
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/ICostPartMissingInfoService.java Wyświetl plik

@@ -1,14 +0,0 @@
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.CostPartMissingInfo;
5
-
6
-/**
7
- * @Description: 标准成本-部件缺失信息
8
- * @Author: wangqiong
9
- * @Date:   2024-06-13
10
- * @Version: V1.0
11
- */
12
-public interface ICostPartMissingInfoService extends IService<CostPartMissingInfo> {
13
-
14
-}

+ 0
- 35
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/ICostStandardVersionService.java Wyświetl plik

@@ -1,35 +0,0 @@
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.CostMaterialBom;
6
-import com.zzsmart.qomo.kn.cost.manage.entity.CostStandardVersion;
7
-import org.jeecg.common.api.vo.Result;
8
-
9
-import javax.servlet.http.HttpServletRequest;
10
-import javax.servlet.http.HttpServletResponse;
11
-import java.util.List;
12
-
13
-
14
-/**
15
- * @Description: 标准成本-版本号
16
- * @Author: wangqiong
17
- * @Date:   2024-06-13
18
- * @Version: V1.0
19
- */
20
-public interface ICostStandardVersionService extends IService<CostStandardVersion> {
21
-    /**
22
-     * excel导入
23
-     * @param request
24
-     * @param response
25
-     * @param costStandardVersionClass
26
-     * @return
27
-     */
28
-    Result<?> importExcel(HttpServletRequest request, HttpServletResponse response, Class<CostStandardVersion> costStandardVersionClass);
29
-    /**
30
-     * 分页查询
31
-     * @param
32
-     * @return
33
-     */
34
-    List<CostStandardVersion> queryListResult(String versionNumber);
35
-}

+ 0
- 15
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/IHourRateService.java Wyświetl plik

@@ -1,15 +0,0 @@
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.HourRate;
6
-
7
-/**
8
- * @Description: hour_rate
9
- * @Author: jeecg-boot
10
- * @Date:   2024-06-06
11
- * @Version: V1.0
12
- */
13
-public interface IHourRateService extends IService<HourRate> {
14
-
15
-}

+ 11
- 11
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/AppSceneCostCountServiceImpl.java Wyświetl plik

@@ -3,12 +3,12 @@ package com.zzsmart.qomo.kn.cost.manage.service.impl;
3 3
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4 4
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
5 5
 import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostCount;
6
-import com.zzsmart.qomo.kn.cost.manage.entity.CostPartMissingInfo;
7
-import com.zzsmart.qomo.kn.cost.manage.entity.CostStandardVersion;
6
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPartMissingInfo;
7
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardVersion;
8 8
 import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostCountMapper;
9
-import com.zzsmart.qomo.kn.cost.manage.mapper.CostPartMissingInfoMapper;
9
+import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostPartMissingInfoMapper;
10 10
 import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostCountService;
11
-import com.zzsmart.qomo.kn.cost.manage.service.ICostStandardVersionService;
11
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostStandardVersionService;
12 12
 import com.zzsmart.qomo.kn.cost.manage.vo.MissingComponentVO;
13 13
 import com.zzsmart.qomo.service.IDataFlowInstanceService;
14 14
 import org.springframework.beans.factory.annotation.Autowired;
@@ -27,11 +27,11 @@ import java.util.List;
27 27
 @Service
28 28
 public class AppSceneCostCountServiceImpl extends ServiceImpl<AppSceneCostCountMapper, AppSceneCostCount> implements IAppSceneCostCountService {
29 29
     @Autowired
30
-    private ICostStandardVersionService costStandardVersionService;
30
+    private IAppSceneCostStandardVersionService costStandardVersionService;
31 31
     @Autowired
32 32
     private IDataFlowInstanceService flowInstanceService;
33 33
     @Autowired
34
-    private CostPartMissingInfoMapper costPartMissingInfoMapper;
34
+    private AppSceneCostPartMissingInfoMapper costPartMissingInfoMapper;
35 35
 
36 36
     /**
37 37
      * 查看关键缺失部件
@@ -43,12 +43,12 @@ public class AppSceneCostCountServiceImpl extends ServiceImpl<AppSceneCostCountM
43 43
     public List<MissingComponentVO> queryMissingComponentById(String id) {
44 44
         List<MissingComponentVO> list = new ArrayList<>();
45 45
         if (id != null) {
46
-            QueryWrapper<CostPartMissingInfo> queryWrapper = new QueryWrapper<>();
46
+            QueryWrapper<AppSceneCostPartMissingInfo> queryWrapper = new QueryWrapper<>();
47 47
             queryWrapper.eq("costStandardId", id);
48
-            List<CostPartMissingInfo> costPartMissingInfos = costPartMissingInfoMapper.selectList(queryWrapper);
48
+            List<AppSceneCostPartMissingInfo> costPartMissingInfos = costPartMissingInfoMapper.selectList(queryWrapper);
49 49
             if (costPartMissingInfos != null && costPartMissingInfos.size() > 0) {
50 50
                 for (int i = 0; i < costPartMissingInfos.size(); i++) {
51
-                    CostPartMissingInfo costPartMissingInfo = costPartMissingInfos.get(i);
51
+                    AppSceneCostPartMissingInfo costPartMissingInfo = costPartMissingInfos.get(i);
52 52
                     if (costPartMissingInfo.getMissingInfo() != null) {
53 53
                         String[] split = costPartMissingInfo.getMissingInfo().split(";");
54 54
                         for (int j = 0; j < split.length; j++) {
@@ -99,7 +99,7 @@ public class AppSceneCostCountServiceImpl extends ServiceImpl<AppSceneCostCountM
99 99
     @Override
100 100
     public void addCostCountTask(AppSceneCostCount appSceneCostCount) {
101 101
         //1.新增版本号记录成功后
102
-        CostStandardVersion costStandardVersion = CostStandardVersion.builder().figureNumber(appSceneCostCount.getDrawingNo()).materialNumber(appSceneCostCount.getMaterialNo()).stage(appSceneCostCount.getStage()).versionNumber(appSceneCostCount.getCostVersion()).versionYear(appSceneCostCount.getYear()).build();
102
+        AppSceneCostStandardVersion costStandardVersion = AppSceneCostStandardVersion.builder().figureNumber(appSceneCostCount.getDrawingNo()).materialNumber(appSceneCostCount.getMaterialNo()).stage(appSceneCostCount.getStage()).versionNumber(appSceneCostCount.getCostVersion()).versionYear(appSceneCostCount.getYear()).build();
103 103
         boolean save = costStandardVersionService.save(costStandardVersion);
104 104
         //2.新增标准成本计算任务,并立即执行标准成本计算
105 105
         if (save) {
@@ -109,7 +109,7 @@ public class AppSceneCostCountServiceImpl extends ServiceImpl<AppSceneCostCountM
109 109
                 //执行标准成本计算
110 110
                 executeStandardCost(appSceneCostCount1.getId(), appSceneCostCount1.getFlowDefinitionId());
111 111
                 //TODO 新增部件缺失信息记录
112
-                CostPartMissingInfo costPartMissingInfo = CostPartMissingInfo.builder().costStandardId(appSceneCostCount1.getId().toString()).materialNumber(appSceneCostCount1.getMaterialNo()).versionNumber(appSceneCostCount1.getCostVersion()).missingInfo("电源线;绝缘层涂料").build();
112
+                AppSceneCostPartMissingInfo costPartMissingInfo = AppSceneCostPartMissingInfo.builder().costStandardId(appSceneCostCount1.getId().toString()).materialNumber(appSceneCostCount1.getMaterialNo()).versionNumber(appSceneCostCount1.getCostVersion()).missingInfo("电源线;绝缘层涂料").build();
113 113
                 costPartMissingInfoMapper.insert(costPartMissingInfo);
114 114
             }
115 115
         }

+ 18
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/AppSceneCostHourRateServiceImpl.java Wyświetl plik

@@ -0,0 +1,18 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service.impl;
2
+
3
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
4
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostHourRate;
5
+import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostHourRateMapper;
6
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostHourRateService;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * @Description: app_scene_cost_hour_rate
11
+ * @Author: jeecg-boot
12
+ * @Date: 2024-08-02
13
+ * @Version: V1.0
14
+ */
15
+@Service
16
+public class AppSceneCostHourRateServiceImpl extends ServiceImpl<AppSceneCostHourRateMapper, AppSceneCostHourRate> implements IAppSceneCostHourRateService {
17
+
18
+}

qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/CostMaterialBomServiceImpl.java → qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/AppSceneCostMaterialBomServiceImpl.java Wyświetl plik

@@ -2,27 +2,26 @@ package com.zzsmart.qomo.kn.cost.manage.service.impl;
2 2
 
3 3
 import cn.hutool.core.util.StrUtil;
4 4
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5
-import com.zzsmart.qomo.kn.cost.manage.entity.CostMaterialBom;
6
-import com.zzsmart.qomo.kn.cost.manage.mapper.CostMaterialBomMapper;
7
-import com.zzsmart.qomo.kn.cost.manage.service.CostMaterialBomService;
8
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMaterialBom;
6
+import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostMaterialBomMapper;
7
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMaterialBomService;
9 8
 import org.springframework.beans.factory.annotation.Autowired;
10 9
 import org.springframework.stereotype.Service;
11 10
 
11
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
12
+
12 13
 import java.util.List;
13 14
 
14 15
 /**
15
- * <p>
16
- * 物料bom 服务实现类
17
- * </p>
18
- *
19
- * @author
20
- * @since 2024-06-21
16
+ * @Description: app_scene_cost_material_bom
17
+ * @Author: jeecg-boot
18
+ * @Date: 2024-08-02
19
+ * @Version: V1.0
21 20
  */
22 21
 @Service
23
-public class CostMaterialBomServiceImpl extends ServiceImpl<CostMaterialBomMapper, CostMaterialBom> implements CostMaterialBomService {
22
+public class AppSceneCostMaterialBomServiceImpl extends ServiceImpl<AppSceneCostMaterialBomMapper, AppSceneCostMaterialBom> implements IAppSceneCostMaterialBomService {
24 23
     @Autowired
25
-    CostMaterialBomMapper costMaterialBomMapper;
24
+    AppSceneCostMaterialBomMapper costMaterialBomMapper;
26 25
 
27 26
     /**
28 27
      * 分页查询
@@ -31,7 +30,7 @@ public class CostMaterialBomServiceImpl extends ServiceImpl<CostMaterialBomMappe
31 30
      * @return
32 31
      */
33 32
     @Override
34
-    public List<CostMaterialBom> queryListResult(String materialNumber) {
33
+    public List<AppSceneCostMaterialBom> queryListResult(String materialNumber) {
35 34
         QueryWrapper queryWrapper = new QueryWrapper();
36 35
         if (StrUtil.isNotEmpty(materialNumber)) {
37 36
             // 物料号
@@ -48,7 +47,7 @@ public class CostMaterialBomServiceImpl extends ServiceImpl<CostMaterialBomMappe
48 47
      * @return
49 48
      */
50 49
     @Override
51
-    public List<CostMaterialBom> queryAllBomInfoBytopMaterialCode(String topMaterialCode) {
50
+    public List<AppSceneCostMaterialBom> queryAllBomInfoBytopMaterialCode(String topMaterialCode) {
52 51
         QueryWrapper queryWrapper = new QueryWrapper();
53 52
         //TODO 循环遍历查出所有的物料下的物料(包含最上层的物料)
54 53
 //        if (StrUtil.isNotEmpty(topMaterialCode)) {

+ 55
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/AppSceneCostMaterialProcessHoursServiceImpl.java Wyświetl plik

@@ -0,0 +1,55 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service.impl;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
5
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMaterialProcessHours;
6
+import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostMaterialProcessHoursMapper;
7
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMaterialProcessHoursService;
8
+import org.springframework.beans.factory.annotation.Autowired;
9
+import org.springframework.stereotype.Service;
10
+
11
+import java.util.ArrayList;
12
+import java.util.HashMap;
13
+import java.util.List;
14
+import java.util.Map;
15
+
16
+/**
17
+ * @Description: app_scene_cost_material_process_hours
18
+ * @Author: jeecg-boot
19
+ * @Date: 2024-08-02
20
+ * @Version: V1.0
21
+ */
22
+@Service
23
+public class AppSceneCostMaterialProcessHoursServiceImpl extends ServiceImpl<AppSceneCostMaterialProcessHoursMapper, AppSceneCostMaterialProcessHours> implements IAppSceneCostMaterialProcessHoursService {
24
+    @Autowired
25
+    AppSceneCostMaterialProcessHoursMapper costMaterialProcessHoursMapper;
26
+
27
+    /**
28
+     * 查询满足物料编号的工时工序
29
+     *
30
+     * @param materialNos
31
+     */
32
+    @Override
33
+    public Map<String, List<AppSceneCostMaterialProcessHours>> getProcessHoursByMaterialNo(List<String> materialNos) {
34
+        Map<String, List<AppSceneCostMaterialProcessHours>> map = new HashMap<>();
35
+        QueryWrapper<AppSceneCostMaterialProcessHours> queryWrapper = new QueryWrapper();
36
+        if (materialNos != null && materialNos.size() > 0) {
37
+            queryWrapper.in("material_code", materialNos);
38
+            List<AppSceneCostMaterialProcessHours> costMaterialProcessHours = costMaterialProcessHoursMapper.selectList(queryWrapper);
39
+            for (int i = 0; i < costMaterialProcessHours.size(); i++) {
40
+                AppSceneCostMaterialProcessHours costMaterialProcessHours1 = costMaterialProcessHours.get(i);
41
+                String materialCode = costMaterialProcessHours1.getMaterialCode();
42
+                if (map.containsKey(materialCode)) {
43
+                    List<AppSceneCostMaterialProcessHours> list = map.get(materialCode);
44
+                    list.add(costMaterialProcessHours1);
45
+                    map.put(materialCode, list);
46
+                } else {
47
+                    List<AppSceneCostMaterialProcessHours> list = new ArrayList<>();
48
+                    list.add(costMaterialProcessHours1);
49
+                    map.put(materialCode, list);
50
+                }
51
+            }
52
+        }
53
+        return map;
54
+    }
55
+}

+ 18
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/AppSceneCostPartMissingInfoServiceImpl.java Wyświetl plik

@@ -0,0 +1,18 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service.impl;
2
+
3
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
4
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPartMissingInfo;
5
+import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostPartMissingInfoMapper;
6
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostPartMissingInfoService;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * @Description: app_scene_cost_part_missing_info
11
+ * @Author: jeecg-boot
12
+ * @Date: 2024-08-02
13
+ * @Version: V1.0
14
+ */
15
+@Service
16
+public class AppSceneCostPartMissingInfoServiceImpl extends ServiceImpl<AppSceneCostPartMissingInfoMapper, AppSceneCostPartMissingInfo> implements IAppSceneCostPartMissingInfoService {
17
+
18
+}

qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/CostPurchasePriceServiceImpl.java → qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/AppSceneCostPurchasePriceServiceImpl.java Wyświetl plik

@@ -1,33 +1,29 @@
1 1
 package com.zzsmart.qomo.kn.cost.manage.service.impl;
2 2
 
3 3
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
-import com.zzsmart.qomo.kn.cost.manage.entity.CostMaterialProcessHours;
5
-import com.zzsmart.qomo.kn.cost.manage.entity.CostPurchasePrice;
6
-import com.zzsmart.qomo.kn.cost.manage.mapper.CostPurchasePriceMapper;
7
-import com.zzsmart.qomo.kn.cost.manage.service.CostPurchasePriceService;
8
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
9
-import org.checkerframework.checker.units.qual.A;
4
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPurchasePrice;
5
+import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostPurchasePriceMapper;
6
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostPurchasePriceService;
10 7
 import org.springframework.beans.factory.annotation.Autowired;
11 8
 import org.springframework.stereotype.Service;
12 9
 
10
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
11
+
13 12
 import java.math.BigDecimal;
14
-import java.util.ArrayList;
15 13
 import java.util.HashMap;
16 14
 import java.util.List;
17 15
 import java.util.Map;
18 16
 
19 17
 /**
20
- * <p>
21
- * 物料采购单价 服务实现类
22
- * </p>
23
- *
24
- * @author
25
- * @since 2024-06-19
18
+ * @Description: app_scene_cost_purchase_price
19
+ * @Author: jeecg-boot
20
+ * @Date:   2024-08-02
21
+ * @Version: V1.0
26 22
  */
27 23
 @Service
28
-public class CostPurchasePriceServiceImpl extends ServiceImpl<CostPurchasePriceMapper, CostPurchasePrice> implements CostPurchasePriceService {
24
+public class AppSceneCostPurchasePriceServiceImpl extends ServiceImpl<AppSceneCostPurchasePriceMapper, AppSceneCostPurchasePrice> implements IAppSceneCostPurchasePriceService {
29 25
     @Autowired
30
-    CostPurchasePriceMapper costPurchasePriceMapper;
26
+    AppSceneCostPurchasePriceMapper costPurchasePriceMapper;
31 27
 
32 28
     /**
33 29
      * 查询满足物料编号的最低采购价
@@ -37,12 +33,12 @@ public class CostPurchasePriceServiceImpl extends ServiceImpl<CostPurchasePriceM
37 33
     @Override
38 34
     public Map<String, BigDecimal> getMinCostPurchasePriceByMaterialNo(List<String> materialNos) {
39 35
         Map<String, BigDecimal> map = new HashMap<>();
40
-        QueryWrapper<CostPurchasePrice> queryWrapper = new QueryWrapper();
36
+        QueryWrapper<AppSceneCostPurchasePrice> queryWrapper = new QueryWrapper();
41 37
         if (materialNos != null && materialNos.size() > 0) {
42 38
             queryWrapper.in("material_code", materialNos);
43
-            List<CostPurchasePrice> costPurchasePrices = costPurchasePriceMapper.selectList(queryWrapper);
39
+            List<AppSceneCostPurchasePrice> costPurchasePrices = costPurchasePriceMapper.selectList(queryWrapper);
44 40
             for (int i = 0; i < costPurchasePrices.size(); i++) {
45
-                CostPurchasePrice costPurchasePrice = costPurchasePrices.get(i);
41
+                AppSceneCostPurchasePrice costPurchasePrice = costPurchasePrices.get(i);
46 42
                 map.put(costPurchasePrice.getMaterialCode(), costPurchasePrice.getMinPurchasePrice());
47 43
             }
48 44
         }

+ 19
- 0
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/AppSceneCostStandardVersionServiceImpl.java Wyświetl plik

@@ -0,0 +1,19 @@
1
+package com.zzsmart.qomo.kn.cost.manage.service.impl;
2
+
3
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
4
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardVersion;
5
+import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostStandardVersionMapper;
6
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostStandardVersionService;
7
+import org.springframework.stereotype.Service;
8
+
9
+
10
+/**
11
+ * @Description: app_scene_cost_standard_version
12
+ * @Author: jeecg-boot
13
+ * @Date:   2024-08-02
14
+ * @Version: V1.0
15
+ */
16
+@Service
17
+public class AppSceneCostStandardVersionServiceImpl extends ServiceImpl<AppSceneCostStandardVersionMapper, AppSceneCostStandardVersion> implements IAppSceneCostStandardVersionService {
18
+
19
+}

+ 0
- 57
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/CostMaterialProcessHoursServiceImpl.java Wyświetl plik

@@ -1,57 +0,0 @@
1
-package com.zzsmart.qomo.kn.cost.manage.service.impl;
2
-
3
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
5
-import com.zzsmart.qomo.kn.cost.manage.entity.CostMaterialProcessHours;
6
-import com.zzsmart.qomo.kn.cost.manage.mapper.CostMaterialProcessHoursMapper;
7
-import com.zzsmart.qomo.kn.cost.manage.service.CostMaterialProcessHoursService;
8
-import org.springframework.beans.factory.annotation.Autowired;
9
-import org.springframework.stereotype.Service;
10
-
11
-import java.util.ArrayList;
12
-import java.util.HashMap;
13
-import java.util.List;
14
-import java.util.Map;
15
-
16
-/**
17
- * <p>
18
- * 物料工时工序表 服务实现类
19
- * </p>
20
- *
21
- * @author
22
- * @since 2024-06-19
23
- */
24
-@Service
25
-public class CostMaterialProcessHoursServiceImpl extends ServiceImpl<CostMaterialProcessHoursMapper, CostMaterialProcessHours> implements CostMaterialProcessHoursService {
26
-    @Autowired
27
-    CostMaterialProcessHoursMapper costMaterialProcessHoursMapper;
28
-
29
-    /**
30
-     * 查询满足物料编号的工时工序
31
-     *
32
-     * @param materialNos
33
-     */
34
-    @Override
35
-    public Map<String, List<CostMaterialProcessHours>> getProcessHoursByMaterialNo(List<String> materialNos) {
36
-        Map<String, List<CostMaterialProcessHours>> map = new HashMap<>();
37
-        QueryWrapper<CostMaterialProcessHours> queryWrapper = new QueryWrapper();
38
-        if (materialNos != null && materialNos.size() > 0) {
39
-            queryWrapper.in("material_code", materialNos);
40
-            List<CostMaterialProcessHours> costMaterialProcessHours = costMaterialProcessHoursMapper.selectList(queryWrapper);
41
-            for (int i = 0; i < costMaterialProcessHours.size(); i++) {
42
-                CostMaterialProcessHours costMaterialProcessHours1 = costMaterialProcessHours.get(i);
43
-                String materialCode = costMaterialProcessHours1.getMaterialCode();
44
-                if (map.containsKey(materialCode)) {
45
-                    List<CostMaterialProcessHours> list = map.get(materialCode);
46
-                    list.add(costMaterialProcessHours1);
47
-                    map.put(materialCode, list);
48
-                } else {
49
-                    List<CostMaterialProcessHours> list = new ArrayList<>();
50
-                    list.add(costMaterialProcessHours1);
51
-                    map.put(materialCode, list);
52
-                }
53
-            }
54
-        }
55
-        return map;
56
-    }
57
-}

+ 0
- 20
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/CostPartMissingInfoServiceImpl.java Wyświetl plik

@@ -1,20 +0,0 @@
1
-package com.zzsmart.qomo.kn.cost.manage.service.impl;
2
-
3
-
4
-import com.zzsmart.qomo.kn.cost.manage.entity.CostPartMissingInfo;
5
-import com.zzsmart.qomo.kn.cost.manage.mapper.CostPartMissingInfoMapper;
6
-import com.zzsmart.qomo.kn.cost.manage.service.ICostPartMissingInfoService;
7
-import org.springframework.stereotype.Service;
8
-
9
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
10
-
11
-/**
12
- * @Description: 标准成本-部件缺失信息
13
- * @Author: wangqiong
14
- * @Date:   2024-06-13
15
- * @Version: V1.0
16
- */
17
-@Service
18
-public class CostPartMissingInfoServiceImpl extends ServiceImpl<CostPartMissingInfoMapper, CostPartMissingInfo> implements ICostPartMissingInfoService {
19
-
20
-}

+ 0
- 214
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/CostStandardVersionServiceImpl.java Wyświetl plik

@@ -1,214 +0,0 @@
1
-package com.zzsmart.qomo.kn.cost.manage.service.impl;
2
-
3
-
4
-import cn.hutool.core.collection.CollectionUtil;
5
-import cn.hutool.core.util.StrUtil;
6
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
7
-import com.zzsmart.qomo.kn.cost.manage.constants.Constants;
8
-import com.zzsmart.qomo.kn.cost.manage.entity.CostStandardVersion;
9
-import com.zzsmart.qomo.kn.cost.manage.enums.StandardStageEnum;
10
-import com.zzsmart.qomo.kn.cost.manage.mapper.CostStandardVersionMapper;
11
-import com.zzsmart.qomo.kn.cost.manage.service.ICostStandardVersionService;
12
-
13
-import org.apache.shiro.SecurityUtils;
14
-import org.jeecg.common.api.vo.Result;
15
-import org.jeecg.common.system.vo.LoginUser;
16
-import org.jeecgframework.poi.excel.ExcelImportUtil;
17
-import org.jeecgframework.poi.excel.entity.ImportParams;
18
-import org.slf4j.Logger;
19
-import org.slf4j.LoggerFactory;
20
-import org.springframework.beans.factory.annotation.Autowired;
21
-import org.springframework.stereotype.Service;
22
-
23
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
24
-import org.springframework.transaction.annotation.Transactional;
25
-import org.springframework.web.multipart.MultipartFile;
26
-import org.springframework.web.multipart.MultipartHttpServletRequest;
27
-
28
-import javax.servlet.http.HttpServletRequest;
29
-import javax.servlet.http.HttpServletResponse;
30
-import java.io.IOException;
31
-import java.text.SimpleDateFormat;
32
-import java.time.ZoneId;
33
-import java.util.Date;
34
-import java.util.Iterator;
35
-import java.util.List;
36
-import java.util.Map;
37
-
38
-
39
-/**
40
- * @Description: 标准成本-版本号
41
- * @Author: wangqiong
42
- * @Date: 2024-06-13
43
- * @Version: V1.0
44
- */
45
-@Service
46
-public class CostStandardVersionServiceImpl extends ServiceImpl<CostStandardVersionMapper, CostStandardVersion> implements ICostStandardVersionService {
47
-    @Autowired
48
-    private CostStandardVersionMapper costStandardVersionMapper;
49
-    private static final Logger log = LoggerFactory.getLogger(CostStandardVersionServiceImpl.class);
50
-
51
-    @Transactional(rollbackFor = Exception.class)
52
-    @Override
53
-    public boolean save(CostStandardVersion costStandardVersion) {
54
-        // todo 查物料表看是否存在改物料,没有抛异常
55
-        LoginUser sysUser = null;
56
-        try {
57
-            sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
58
-        } catch (Exception ignored) {
59
-
60
-        }
61
-        if (sysUser != null) {
62
-            costStandardVersion.setCreateBy(sysUser.getUsername());
63
-        }
64
-        // 保存版本号表
65
-        boolean save = super.save(costStandardVersion);
66
-        return save;
67
-    }
68
-
69
-
70
-    /**
71
-     * 标准成本计算
72
-     *
73
-     * @param costStandardVersion 版本号
74
-     * @return
75
-     */
76
-   // private CostStandard standardCalculate(CostStandardVersion costStandardVersion) {
77
-        // 计算逻辑,生成版本号输入的物料号是根节点物料号,
78
-        // 1,根据根节点物料号查找物料表kn_new_sap_mara
79
-
80
-        // 2,去bom表找出对应下的所有层级物料app_scene_cost_material_bom
81
-
82
-        // 3,根据物料去工时工序表找出对应工序,工序表中包含所计算的工时,app_scene_cost_material_process_hours
83
-        // 4,查小时费率表,找到对应工时费率app_scene_cost_hour_rate
84
-        // 5,查采购单价表,找到对应采购单价app_scene_cost_purchase_price
85
-        // 5,计算每层级的物料标准成本,存到标准成本明细表app_scene_cost_standard_detail
86
-
87
-        // 4,计算bom费用,BOM表清单物料用量*采购单价
88
-        // 5,计算包装费
89
-        // 6,计算辅料费
90
-        // 7,计算人工费,人工工时*费率
91
-        // 8,计算机器折旧费,机器工时*费率
92
-        // 9,计算机物料消耗费,辅料工时*费率
93
-        // 10,计算水电费,燃动力工时*费率
94
-        // 11,计算其他制造费,其他工时*费率
95
-        // 12,计算物流费,物流费用=(机器折旧+机物料消耗+水电费+其他制费)*10.16%
96
-        // 13,计算制造成本,前面所有费用汇总(即人工费+机器折旧费+机物料消耗费+水电费+其他制造费+物流费)
97
-        // 18,计算总成本
98
-
99
-//        return standard;
100
-//    }
101
-
102
-
103
-
104
-    /**
105
-     * excel导入
106
-     *
107
-     * @param request
108
-     * @param response
109
-     * @param clazz
110
-     * @return
111
-     */
112
-    @Transactional(rollbackFor = Exception.class)
113
-    @Override
114
-    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response, Class<CostStandardVersion> clazz) {
115
-        MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
116
-        Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
117
-        Iterator iterator = fileMap.entrySet().iterator();
118
-        if (iterator.hasNext()) {
119
-            Map.Entry<String, MultipartFile> entity = (Map.Entry) iterator.next();
120
-            MultipartFile file = (MultipartFile) entity.getValue();
121
-            ImportParams params = new ImportParams();
122
-            params.setTitleRows(2);
123
-            params.setHeadRows(1);
124
-            params.setNeedSave(true);
125
-            try {
126
-                List<CostStandardVersion> list = ExcelImportUtil.importExcel(file.getInputStream(), clazz, params);
127
-                if (CollectionUtil.isEmpty(list)) {
128
-                    log.error("无可导入的数据!");
129
-                    return Result.error("无可导入的数据!");
130
-                }
131
-                int successNum = 0;
132
-                int failureNum = 0;
133
-                //   StringBuilder successMsg = new StringBuilder();
134
-                StringBuilder failureMsg = new StringBuilder();
135
-                long start = System.currentTimeMillis();
136
-                // 校验并组装list
137
-                for (int i = 0; i < list.size(); i++) {
138
-                    CostStandardVersion standardVersion = list.get(i);
139
-                    // 校验物料号是否为空
140
-                    if (StrUtil.isEmpty(standardVersion.getMaterialNumber())) {
141
-                        failureNum++;
142
-                        failureMsg.append("<br/>第 " + (i + 2) + " 行【物料号】字段不能为空:");
143
-                        continue;
144
-                    }
145
-                    if (StrUtil.isNotEmpty(standardVersion.getStage())) {
146
-                        standardVersion.setStage(StandardStageEnum.getCodeByText(standardVersion.getStage()));
147
-                    }
148
-                    // 创建日期
149
-                    Date createDate = new Date();
150
-                    standardVersion.setCreateTime(createDate);
151
-                    String dateStr = new SimpleDateFormat("yyyyMMddHHmmss").format(createDate);
152
-                    // 生成版本号,版本号=图号_阶段_创建日期(格式:yyyyMMddHHmmss)
153
-                    standardVersion.setVersionNumber(standardVersion.getFigureNumber()+ Constants.UNDER_LINE +standardVersion.getStage()+Constants.UNDER_LINE+dateStr);
154
-                    // 设置年份
155
-                    standardVersion.setVersionYear(String.valueOf(createDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate().getYear()));
156
-                    // 调用保存方法
157
-                    try {
158
-                        save(standardVersion);
159
-                    } catch (Exception e) {
160
-                        failureNum++;
161
-                        String msg = "<br/>第 " + (i + 2) + " 行数据导入失败;";
162
-                        failureMsg.append(msg);
163
-                        log.error(msg, e);
164
-                    }
165
-                    successNum++;
166
-                }
167
-                //   costStandardVersionService.saveBatch(list);
168
-                log.info("消耗时间" + (System.currentTimeMillis() - start) + "毫秒");
169
-                String returnMsg = "文件导入成功!数据行数:" + successNum;
170
-                if (failureNum > 0) {
171
-                    returnMsg += "<br/>失败数据行数:" + failureNum + ",失败信息如下:<br/>" + failureMsg.toString();
172
-                }
173
-                return Result.ok(returnMsg);
174
-            } catch (Exception exception) {
175
-                String msg = exception.getMessage();
176
-                log.error(msg, exception);
177
-                Result result;
178
-                String duplicateEntry = "Duplicate entry";
179
-                if (msg != null && msg.contains(duplicateEntry)) {
180
-                    result = Result.error("文件导入失败:有重复数据!");
181
-                    return result;
182
-                } else {
183
-                    result = Result.error("文件导入失败:" + exception.getMessage());
184
-                    return result;
185
-                }
186
-            } finally {
187
-                try {
188
-                    file.getInputStream().close();
189
-                } catch (IOException var23) {
190
-                    var23.printStackTrace();
191
-                }
192
-            }
193
-        } else {
194
-            return Result.error("文件导入失败!");
195
-        }
196
-
197
-    }
198
-
199
-    /**
200
-     * 分页查询
201
-     *
202
-     * @param versionNumber@return
203
-     */
204
-    @Override
205
-    public List<CostStandardVersion> queryListResult(String versionNumber) {
206
-        QueryWrapper queryWrapper = new QueryWrapper();
207
-        if (StrUtil.isNotEmpty(versionNumber)) {
208
-            // 物料号
209
-            queryWrapper.like("version_number", versionNumber);
210
-        }
211
-        List list = costStandardVersionMapper.selectList(queryWrapper);
212
-        return list;
213
-    }
214
-}

+ 0
- 19
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/HourRateServiceImpl.java Wyświetl plik

@@ -1,19 +0,0 @@
1
-package com.zzsmart.qomo.kn.cost.manage.service.impl;
2
-
3
-
4
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
5
-import com.zzsmart.qomo.kn.cost.manage.entity.HourRate;
6
-import com.zzsmart.qomo.kn.cost.manage.mapper.HourRateMapper;
7
-import com.zzsmart.qomo.kn.cost.manage.service.IHourRateService;
8
-import org.springframework.stereotype.Service;
9
-
10
-/**
11
- * @Description: hour_rate
12
- * @Author: jeecg-boot
13
- * @Date:   2024-06-06
14
- * @Version: V1.0
15
- */
16
-@Service
17
-public class HourRateServiceImpl extends ServiceImpl<HourRateMapper, HourRate> implements IHourRateService {
18
-
19
-}

+ 1
- 3
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/vo/AppSceneCostCountVO.java Wyświetl plik

@@ -1,14 +1,12 @@
1 1
 package com.zzsmart.qomo.kn.cost.manage.vo;
2 2
 
3 3
 import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostCount;
4
-import lombok.Builder;
5 4
 import lombok.Data;
6 5
 
7 6
 @Data
8
-@Builder
9 7
 public class AppSceneCostCountVO extends AppSceneCostCount {
10 8
     /**
11 9
      * 状态名称
12 10
      */
13
-    private String statusName;
11
+    public String statusName;
14 12
 }