优化单行查询接口
This commit is contained in:
+1
-1
@@ -137,7 +137,7 @@ public class AppSceneCostStandardDetailController extends JeecgController<AppSce
|
|||||||
* @param request
|
* @param request
|
||||||
* @param appSceneCostStandardDetail
|
* @param appSceneCostStandardDetail
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:exportXls")
|
// @RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:exportXls")
|
||||||
@RequestMapping(value = "/exportXls")
|
@RequestMapping(value = "/exportXls")
|
||||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostStandardDetail appSceneCostStandardDetail) {
|
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostStandardDetail appSceneCostStandardDetail) {
|
||||||
return super.exportXls(request, appSceneCostStandardDetail, AppSceneCostStandardDetail.class, "app_scene_cost_standard_detail");
|
return super.exportXls(request, appSceneCostStandardDetail, AppSceneCostStandardDetail.class, "app_scene_cost_standard_detail");
|
||||||
|
|||||||
+4
-1
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|||||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostCount;
|
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostCount;
|
||||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPartMissingInfo;
|
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPartMissingInfo;
|
||||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardVersion;
|
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardVersion;
|
||||||
|
import com.zzsmart.qomo.kn.cost.manage.enums.CostCountStatusEnum;
|
||||||
import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostCountMapper;
|
import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostCountMapper;
|
||||||
import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostPartMissingInfoMapper;
|
import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostPartMissingInfoMapper;
|
||||||
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostCountService;
|
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostCountService;
|
||||||
@@ -103,9 +104,11 @@ public class AppSceneCostCountServiceImpl extends ServiceImpl<AppSceneCostCountM
|
|||||||
boolean save = costStandardVersionService.save(costStandardVersion);
|
boolean save = costStandardVersionService.save(costStandardVersion);
|
||||||
//2.新增标准成本计算任务,并立即执行标准成本计算
|
//2.新增标准成本计算任务,并立即执行标准成本计算
|
||||||
if (save) {
|
if (save) {
|
||||||
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();
|
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();
|
||||||
boolean flag = save(appSceneCostCount1);
|
boolean flag = save(appSceneCostCount1);
|
||||||
if (flag) {
|
if (flag) {
|
||||||
|
//发送更新成本计算状态的队列消息(队列名:updateCostCountStatus)
|
||||||
|
|
||||||
//执行标准成本计算
|
//执行标准成本计算
|
||||||
executeStandardCost(appSceneCostCount1.getId(), appSceneCostCount1.getFlowDefinitionId());
|
executeStandardCost(appSceneCostCount1.getId(), appSceneCostCount1.getFlowDefinitionId());
|
||||||
//TODO 新增部件缺失信息记录
|
//TODO 新增部件缺失信息记录
|
||||||
|
|||||||
Reference in New Issue
Block a user