Quellcode durchsuchen

优化单行查询接口

wangqiong vor 1 Jahr
Ursprung
Commit
71497f5641

+ 1
- 1
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardDetailController.java Datei anzeigen

@@ -137,7 +137,7 @@ public class AppSceneCostStandardDetailController extends JeecgController<AppSce
137 137
      * @param request
138 138
      * @param appSceneCostStandardDetail
139 139
      */
140
-    @RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:exportXls")
140
+//    @RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:exportXls")
141 141
     @RequestMapping(value = "/exportXls")
142 142
     public ModelAndView exportXls(HttpServletRequest request, AppSceneCostStandardDetail appSceneCostStandardDetail) {
143 143
         return super.exportXls(request, appSceneCostStandardDetail, AppSceneCostStandardDetail.class, "app_scene_cost_standard_detail");

+ 4
- 1
qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/service/impl/AppSceneCostCountServiceImpl.java Datei anzeigen

@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
5 5
 import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostCount;
6 6
 import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPartMissingInfo;
7 7
 import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardVersion;
8
+import com.zzsmart.qomo.kn.cost.manage.enums.CostCountStatusEnum;
8 9
 import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostCountMapper;
9 10
 import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostPartMissingInfoMapper;
10 11
 import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostCountService;
@@ -103,9 +104,11 @@ public class AppSceneCostCountServiceImpl extends ServiceImpl<AppSceneCostCountM
103 104
         boolean save = costStandardVersionService.save(costStandardVersion);
104 105
         //2.新增标准成本计算任务,并立即执行标准成本计算
105 106
         if (save) {
106
-            AppSceneCostCount appSceneCostCount1 = AppSceneCostCount.builder().materialNo(appSceneCostCount.getMaterialNo()).drawingNo(appSceneCostCount.getDrawingNo()).stage(appSceneCostCount.getStage()).flowDefinitionId(appSceneCostCount.getFlowDefinitionId()).year(appSceneCostCount.getYear()).costVersion(costStandardVersion.getVersionNumber()).status(0).createTime(new Date()).build();
107
+            AppSceneCostCount appSceneCostCount1 = AppSceneCostCount.builder().materialNo(appSceneCostCount.getMaterialNo()).drawingNo(appSceneCostCount.getDrawingNo()).stage(appSceneCostCount.getStage()).flowDefinitionId(appSceneCostCount.getFlowDefinitionId()).year(appSceneCostCount.getYear()).costVersion(costStandardVersion.getVersionNumber()).status(CostCountStatusEnum.Executing.getValue()).createTime(new Date()).build();
107 108
             boolean flag = save(appSceneCostCount1);
108 109
             if (flag) {
110
+                //发送更新成本计算状态的队列消息(队列名:updateCostCountStatus)
111
+
109 112
                 //执行标准成本计算
110 113
                 executeStandardCost(appSceneCostCount1.getId(), appSceneCostCount1.getFlowDefinitionId());
111 114
                 //TODO 新增部件缺失信息记录