重新生成bom、工序、采购价、版本号mapper #13

Merged
bgy merged 1 commits from bgy into master 2024-09-08 08:23:25 +00:00
24 changed files with 1047 additions and 55 deletions
@@ -15,7 +15,7 @@ v2:
defaultFormat: .png
server:
port: 8098
port: 8099
tomcat:
max-swallow-size: -1
error:
@@ -211,9 +211,9 @@ spring:
# password: knphm2021
# driver-class-name: com.mysql.cj.jdbc.Driver
master:
url: jdbc:mysql://158.158.4.51:13306/kn_otd_app?useUnicode=true&allowMultiQueries=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&serverTimezone=Asia/Shanghai&useSSL=false
username: knotd
password: otd@2024
url: jdbc:mysql://158.158.4.51:3386/kn_energy_cost?useUnicode=true&allowMultiQueries=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&serverTimezone=Asia/Shanghai&useSSL=false
username: root
password: knEnergyCost0826#
driver-class-name: com.mysql.cj.jdbc.Driver
# 多数据源配置
#multi-datasource1:
@@ -222,16 +222,23 @@ spring:
#password: root
#driver-class-name: com.mysql.cj.jdbc.Driver
#redis 配置
redis:
# redis:
# database: 5
# host: 121.40.189.20
# port: 6389
redis:
database: 9
host: 192.168.50.9
port: 7379
password: 'zzboard'
main:
allow-circular-references: true
# redis:
# database: 10
# host: localhost
# port: 6379
# main:
# allow-circular-references: true
#rabbitmq 配置
rabbitmq:
@@ -265,6 +272,8 @@ mybatis-plus:
# log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
# 返回类型为Map,显示null对应的字段
call-setters-on-nulls: true
security:
enabled: false
#jeecg专用配置
minidao:
base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
@@ -287,8 +296,8 @@ jeecg:
#webapp文件路径
webapp: /opt/webapp
shiro:
# excludeUrls: /api/internalService/**,/test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/sys/sysDepart/**,/taskSocket/**,/flowSocket/**,/dataCheck/**
excludeUrls: /**/**,/**/**/**
excludeUrls: /api/internalService/**,/test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/sys/sysDepart/**,/taskSocket/**,/flowSocket/**,/dataCheck/**
# excludeUrls: /**/**,/**/**/**
#阿里云oss存储和大鱼短信秘钥配置
oss:
+16
View File
@@ -13,6 +13,7 @@
<dependency>
<groupId>org.qomo.boot</groupId>
<artifactId>qomo-system-biz</artifactId>
<version>2.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.google.auto.service</groupId>
@@ -22,6 +23,21 @@
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-data-integration</artifactId>
<exclusions>
<exclusion>
<groupId>com.zzsmart.hdp.hive</groupId>
<artifactId>hive-jdbc</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.zzsmart.hdp.hive</groupId>
<artifactId>hive-jdbc</artifactId>
<version>2.6.5.0-292</version>
</dependency>
<dependency>
<groupId>com.zzsmart.qomo</groupId>
<artifactId>qomo-data-selfReport</artifactId>
</dependency>
</dependencies>
</project>
@@ -0,0 +1,159 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostBomRelevancy;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostBomRelevancyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Arrays;
/**
* @Description: app_scene_cost_bom_relevancy
* @Author: jeecg-boot
* @Date: 2024-09-08
* @Version: V1.0
*/
@Api(tags = "app_scene_cost_bom_relevancy")
@RestController
@RequestMapping("//appSceneCostBomRelevancy")
@Slf4j
public class AppSceneCostBomRelevancyController extends JeecgController<AppSceneCostBomRelevancy, IAppSceneCostBomRelevancyService> {
@Autowired
private IAppSceneCostBomRelevancyService appSceneCostBomRelevancyService;
/**
* 分页列表查询
*
* @param appSceneCostBomRelevancy
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_bom_relevancy-分页列表查询")
@ApiOperation(value = "app_scene_cost_bom_relevancy-分页列表查询", notes = "app_scene_cost_bom_relevancy-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostBomRelevancy>> queryPageList(AppSceneCostBomRelevancy appSceneCostBomRelevancy, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
QueryWrapper<AppSceneCostBomRelevancy> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostBomRelevancy, req.getParameterMap());
Page<AppSceneCostBomRelevancy> page = new Page<AppSceneCostBomRelevancy>(pageNo, pageSize);
IPage<AppSceneCostBomRelevancy> pageList = appSceneCostBomRelevancyService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param appSceneCostBomRelevancy
* @return
*/
@AutoLog(value = "app_scene_cost_bom_relevancy-添加")
@ApiOperation(value = "app_scene_cost_bom_relevancy-添加", notes = "app_scene_cost_bom_relevancy-添加")
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_bom_relevancy:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody AppSceneCostBomRelevancy appSceneCostBomRelevancy) {
appSceneCostBomRelevancyService.save(appSceneCostBomRelevancy);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param appSceneCostBomRelevancy
* @return
*/
@AutoLog(value = "app_scene_cost_bom_relevancy-编辑")
@ApiOperation(value = "app_scene_cost_bom_relevancy-编辑", notes = "app_scene_cost_bom_relevancy-编辑")
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_bom_relevancy:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
public Result<String> edit(@RequestBody AppSceneCostBomRelevancy appSceneCostBomRelevancy) {
appSceneCostBomRelevancyService.updateById(appSceneCostBomRelevancy);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "app_scene_cost_bom_relevancy-通过id删除")
@ApiOperation(value = "app_scene_cost_bom_relevancy-通过id删除", notes = "app_scene_cost_bom_relevancy-通过id删除")
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_bom_relevancy:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
appSceneCostBomRelevancyService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "app_scene_cost_bom_relevancy-批量删除")
@ApiOperation(value = "app_scene_cost_bom_relevancy-批量删除", notes = "app_scene_cost_bom_relevancy-批量删除")
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_bom_relevancy:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
this.appSceneCostBomRelevancyService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_bom_relevancy-通过id查询")
@ApiOperation(value = "app_scene_cost_bom_relevancy-通过id查询", notes = "app_scene_cost_bom_relevancy-通过id查询")
@GetMapping(value = "/queryById")
public Result<AppSceneCostBomRelevancy> queryById(@RequestParam(name = "id", required = true) String id) {
AppSceneCostBomRelevancy appSceneCostBomRelevancy = appSceneCostBomRelevancyService.getById(id);
if (appSceneCostBomRelevancy == null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostBomRelevancy);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostBomRelevancy
*/
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_bom_relevancy:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostBomRelevancy appSceneCostBomRelevancy) {
return super.exportXls(request, appSceneCostBomRelevancy, AppSceneCostBomRelevancy.class, "app_scene_cost_bom_relevancy");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_bom_relevancy:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, AppSceneCostBomRelevancy.class);
}
}
@@ -0,0 +1,159 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostProductProcessMaintenance;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostProductProcessMaintenanceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Arrays;
/**
* @Description: app_scene_cost_product_process_maintenance
* @Author: jeecg-boot
* @Date: 2024-09-08
* @Version: V1.0
*/
//@Api(tags = "app_scene_cost_product_process_maintenance")
@RestController
@RequestMapping("//appSceneCostProductProcessMaintenance")
@Slf4j
public class AppSceneCostProductProcessMaintenanceController extends JeecgController<AppSceneCostProductProcessMaintenance, IAppSceneCostProductProcessMaintenanceService> {
@Autowired
private IAppSceneCostProductProcessMaintenanceService appSceneCostProductProcessMaintenanceService;
/**
* 分页列表查询
*
* @param appSceneCostProductProcessMaintenance
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_product_process_maintenance-分页列表查询")
@ApiOperation(value = "app_scene_cost_product_process_maintenance-分页列表查询", notes = "app_scene_cost_product_process_maintenance-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostProductProcessMaintenance>> queryPageList(AppSceneCostProductProcessMaintenance appSceneCostProductProcessMaintenance, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
QueryWrapper<AppSceneCostProductProcessMaintenance> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostProductProcessMaintenance, req.getParameterMap());
Page<AppSceneCostProductProcessMaintenance> page = new Page<AppSceneCostProductProcessMaintenance>(pageNo, pageSize);
IPage<AppSceneCostProductProcessMaintenance> pageList = appSceneCostProductProcessMaintenanceService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param appSceneCostProductProcessMaintenance
* @return
*/
@AutoLog(value = "app_scene_cost_product_process_maintenance-添加")
@ApiOperation(value = "app_scene_cost_product_process_maintenance-添加", notes = "app_scene_cost_product_process_maintenance-添加")
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_product_process_maintenance:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody AppSceneCostProductProcessMaintenance appSceneCostProductProcessMaintenance) {
appSceneCostProductProcessMaintenanceService.save(appSceneCostProductProcessMaintenance);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param appSceneCostProductProcessMaintenance
* @return
*/
@AutoLog(value = "app_scene_cost_product_process_maintenance-编辑")
@ApiOperation(value = "app_scene_cost_product_process_maintenance-编辑", notes = "app_scene_cost_product_process_maintenance-编辑")
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_product_process_maintenance:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
public Result<String> edit(@RequestBody AppSceneCostProductProcessMaintenance appSceneCostProductProcessMaintenance) {
appSceneCostProductProcessMaintenanceService.updateById(appSceneCostProductProcessMaintenance);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "app_scene_cost_product_process_maintenance-通过id删除")
@ApiOperation(value = "app_scene_cost_product_process_maintenance-通过id删除", notes = "app_scene_cost_product_process_maintenance-通过id删除")
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_product_process_maintenance:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
appSceneCostProductProcessMaintenanceService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "app_scene_cost_product_process_maintenance-批量删除")
@ApiOperation(value = "app_scene_cost_product_process_maintenance-批量删除", notes = "app_scene_cost_product_process_maintenance-批量删除")
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_product_process_maintenance:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
this.appSceneCostProductProcessMaintenanceService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_product_process_maintenance-通过id查询")
@ApiOperation(value = "app_scene_cost_product_process_maintenance-通过id查询", notes = "app_scene_cost_product_process_maintenance-通过id查询")
@GetMapping(value = "/queryById")
public Result<AppSceneCostProductProcessMaintenance> queryById(@RequestParam(name = "id", required = true) String id) {
AppSceneCostProductProcessMaintenance appSceneCostProductProcessMaintenance = appSceneCostProductProcessMaintenanceService.getById(id);
if (appSceneCostProductProcessMaintenance == null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostProductProcessMaintenance);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostProductProcessMaintenance
*/
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_product_process_maintenance:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostProductProcessMaintenance appSceneCostProductProcessMaintenance) {
return super.exportXls(request, appSceneCostProductProcessMaintenance, AppSceneCostProductProcessMaintenance.class, "app_scene_cost_product_process_maintenance");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_product_process_maintenance:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, AppSceneCostProductProcessMaintenance.class);
}
}
@@ -0,0 +1,159 @@
package com.zzsmart.qomo.kn.cost.manage.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPurchaseRecord;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostPurchaseRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Arrays;
/**
* @Description: app_scene_cost_purchase_record
* @Author: jeecg-boot
* @Date: 2024-09-08
* @Version: V1.0
*/
//@Api(tags = "app_scene_cost_purchase_record")
@RestController
@RequestMapping("//appSceneCostPurchaseRecord")
@Slf4j
public class AppSceneCostPurchaseRecordController extends JeecgController<AppSceneCostPurchaseRecord, IAppSceneCostPurchaseRecordService> {
@Autowired
private IAppSceneCostPurchaseRecordService appSceneCostPurchaseRecordService;
/**
* 分页列表查询
*
* @param appSceneCostPurchaseRecord
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "app_scene_cost_purchase_record-分页列表查询")
@ApiOperation(value = "app_scene_cost_purchase_record-分页列表查询", notes = "app_scene_cost_purchase_record-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<AppSceneCostPurchaseRecord>> queryPageList(AppSceneCostPurchaseRecord appSceneCostPurchaseRecord, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
QueryWrapper<AppSceneCostPurchaseRecord> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostPurchaseRecord, req.getParameterMap());
Page<AppSceneCostPurchaseRecord> page = new Page<AppSceneCostPurchaseRecord>(pageNo, pageSize);
IPage<AppSceneCostPurchaseRecord> pageList = appSceneCostPurchaseRecordService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param appSceneCostPurchaseRecord
* @return
*/
@AutoLog(value = "app_scene_cost_purchase_record-添加")
@ApiOperation(value = "app_scene_cost_purchase_record-添加", notes = "app_scene_cost_purchase_record-添加")
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_record:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody AppSceneCostPurchaseRecord appSceneCostPurchaseRecord) {
appSceneCostPurchaseRecordService.save(appSceneCostPurchaseRecord);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param appSceneCostPurchaseRecord
* @return
*/
@AutoLog(value = "app_scene_cost_purchase_record-编辑")
@ApiOperation(value = "app_scene_cost_purchase_record-编辑", notes = "app_scene_cost_purchase_record-编辑")
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_record:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
public Result<String> edit(@RequestBody AppSceneCostPurchaseRecord appSceneCostPurchaseRecord) {
appSceneCostPurchaseRecordService.updateById(appSceneCostPurchaseRecord);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "app_scene_cost_purchase_record-通过id删除")
@ApiOperation(value = "app_scene_cost_purchase_record-通过id删除", notes = "app_scene_cost_purchase_record-通过id删除")
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_record:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
appSceneCostPurchaseRecordService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "app_scene_cost_purchase_record-批量删除")
@ApiOperation(value = "app_scene_cost_purchase_record-批量删除", notes = "app_scene_cost_purchase_record-批量删除")
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_record:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
this.appSceneCostPurchaseRecordService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "app_scene_cost_purchase_record-通过id查询")
@ApiOperation(value = "app_scene_cost_purchase_record-通过id查询", notes = "app_scene_cost_purchase_record-通过id查询")
@GetMapping(value = "/queryById")
public Result<AppSceneCostPurchaseRecord> queryById(@RequestParam(name = "id", required = true) String id) {
AppSceneCostPurchaseRecord appSceneCostPurchaseRecord = appSceneCostPurchaseRecordService.getById(id);
if (appSceneCostPurchaseRecord == null) {
return Result.error("未找到对应数据");
}
return Result.OK(appSceneCostPurchaseRecord);
}
/**
* 导出excel
*
* @param request
* @param appSceneCostPurchaseRecord
*/
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_record:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostPurchaseRecord appSceneCostPurchaseRecord) {
return super.exportXls(request, appSceneCostPurchaseRecord, AppSceneCostPurchaseRecord.class, "app_scene_cost_purchase_record");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_purchase_record:importExcel")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, AppSceneCostPurchaseRecord.class);
}
}
@@ -7,18 +7,16 @@ import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardVersion;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostStandardVersionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Arrays;
/**
* @Description: app_scene_cost_standard_version
@@ -0,0 +1,87 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: app_scene_cost_bom_relevancy
* @Author: jeecg-boot
* @Date: 2024-09-08
* @Version: V1.0
*/
@Data
@TableName("app_scene_cost_bom_relevancy")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_scene_cost_bom_relevancy对象", description="app_scene_cost_bom_relevancy")
public class AppSceneCostBomRelevancy implements Serializable {
private static final long serialVersionUID = 1L;
/**父物料号*/
@Excel(name = "父物料号", width = 15)
@ApiModelProperty(value = "父物料号")
private String matnr;
/**版本号*/
@Excel(name = "版本号", width = 15)
@ApiModelProperty(value = "版本号")
private String versionNumber;
/**posnr*/
@Excel(name = "posnr", width = 15)
@ApiModelProperty(value = "posnr")
private String posnr;
/**工厂*/
@Excel(name = "工厂", width = 15)
@ApiModelProperty(value = "工厂")
private String werks;
/**bmeng*/
@Excel(name = "bmeng", width = 15)
@ApiModelProperty(value = "bmeng")
private BigDecimal bmeng;
/**stlan*/
@Excel(name = "stlan", width = 15)
@ApiModelProperty(value = "stlan")
private String stlan;
/**antxt*/
@Excel(name = "antxt", width = 15)
@ApiModelProperty(value = "antxt")
private String antxt;
/**子物料号*/
@Excel(name = "子物料号", width = 15)
@ApiModelProperty(value = "子物料号")
private String idnrk;
/**领用量*/
@Excel(name = "领用量", width = 15)
@ApiModelProperty(value = "领用量")
private String meins;
/**menge*/
@Excel(name = "menge", width = 15)
@ApiModelProperty(value = "menge")
private BigDecimal menge;
/**ausch*/
@Excel(name = "ausch", width = 15)
@ApiModelProperty(value = "ausch")
private BigDecimal ausch;
/**datuv*/
@Excel(name = "datuv", width = 15)
@ApiModelProperty(value = "datuv")
private String datuv;
/**potx1*/
@Excel(name = "potx1", width = 15)
@ApiModelProperty(value = "potx1")
private String potx1;
}
@@ -0,0 +1,111 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: app_scene_cost_product_process_maintenance
* @Author: jeecg-boot
* @Date: 2024-09-08
* @Version: V1.0
*/
@Data
@TableName("app_scene_cost_product_process_maintenance")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_scene_cost_product_process_maintenance对象", description="app_scene_cost_product_process_maintenance")
public class AppSceneCostProductProcessMaintenance implements Serializable {
private static final long serialVersionUID = 1L;
/**工厂*/
@Excel(name = "工厂", width = 15)
@ApiModelProperty(value = "工厂")
private String factory;
/**物料号*/
@Excel(name = "物料号", width = 15)
@ApiModelProperty(value = "物料号")
private String mainPartNumber;
/**工序编号*/
@Excel(name = "工序编号", width = 15)
@ApiModelProperty(value = "工序编号")
private String processRouteNumber;
/**序号*/
@Excel(name = "序号", width = 15)
@ApiModelProperty(value = "序号")
private String serialNumber;
/**工序名称*/
@Excel(name = "工序名称", width = 15)
@ApiModelProperty(value = "工序名称")
private String processName;
/**成本中心*/
@Excel(name = "成本中心", width = 15)
@ApiModelProperty(value = "成本中心")
private String costCenterCode;
/**准备工时*/
@Excel(name = "准备工时", width = 15)
@ApiModelProperty(value = "准备工时")
private BigDecimal prepareHour;
/**人工工时*/
@Excel(name = "人工工时", width = 15)
@ApiModelProperty(value = "人工工时")
private BigDecimal laborHour;
/**设备工时*/
@Excel(name = "设备工时", width = 15)
@ApiModelProperty(value = "设备工时")
private BigDecimal machineHour;
/**燃动工时*/
@Excel(name = "燃动工时", width = 15)
@ApiModelProperty(value = "燃动工时")
private BigDecimal burningHour;
/**辅料工时*/
@Excel(name = "辅料工时", width = 15)
@ApiModelProperty(value = "辅料工时")
private BigDecimal auxiliaryHour;
/**其他工时*/
@Excel(name = "其他工时", width = 15)
@ApiModelProperty(value = "其他工时")
private BigDecimal otherHour;
/**hourType*/
@Excel(name = "hourType", width = 15)
@ApiModelProperty(value = "hourType")
private String hourType;
/**版本号*/
@Excel(name = "版本号", width = 15)
@ApiModelProperty(value = "版本号")
private String versionNumber;
/**guardian*/
@Excel(name = "guardian", width = 15)
@ApiModelProperty(value = "guardian")
private String guardian;
/**maintenanceTime*/
@Excel(name = "maintenanceTime", width = 15)
@ApiModelProperty(value = "maintenanceTime")
private String maintenanceTime;
/**reserve1*/
@Excel(name = "reserve1", width = 15)
@ApiModelProperty(value = "reserve1")
private String reserve1;
/**reserve2*/
@Excel(name = "reserve2", width = 15)
@ApiModelProperty(value = "reserve2")
private BigDecimal reserve2;
/**jobCode*/
@Excel(name = "jobCode", width = 15)
@ApiModelProperty(value = "jobCode")
private String jobCode;
}
@@ -0,0 +1,94 @@
package com.zzsmart.qomo.kn.cost.manage.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* @Description: app_scene_cost_purchase_record
* @Author: jeecg-boot
* @Date: 2024-09-08
* @Version: V1.0
*/
@Data
@TableName("app_scene_cost_purchase_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "app_scene_cost_purchase_record对象", description = "app_scene_cost_purchase_record")
public class AppSceneCostPurchaseRecord implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 工厂
*/
@Excel(name = "工厂", width = 15)
@ApiModelProperty(value = "工厂")
private String werks;
/**
* 组织
*/
@Excel(name = "组织", width = 15)
@ApiModelProperty(value = "组织")
private String ekorg;
/**
* 物料号
*/
@Excel(name = "物料号", width = 15)
@ApiModelProperty(value = "物料号")
private String infnr;
/**
* 供应商代码
*/
@Excel(name = "供应商代码", width = 15)
@ApiModelProperty(value = "供应商代码")
private String lifnr;
/**
* esokz
*/
@Excel(name = "esokz", width = 15)
@ApiModelProperty(value = "esokz")
private String esokz;
/**
* 单价
*/
@Excel(name = "单价", width = 15)
@ApiModelProperty(value = "单价")
private BigDecimal netpr;
/**
* 币种
*/
@Excel(name = "币种", width = 15)
@ApiModelProperty(value = "币种")
private String waers;
/**
* 有效截止时间
*/
@Excel(name = "有效截止时间", width = 15)
@ApiModelProperty(value = "有效截止时间")
private String prdat;
/**
* 有效开始时间
*/
@Excel(name = "有效开始时间", width = 15)
@ApiModelProperty(value = "有效开始时间")
private String erdat;
/**
* ukurs
*/
@Excel(name = "ukurs", width = 15)
@ApiModelProperty(value = "ukurs")
private BigDecimal ukurs;
/**
* 人名币单价
*/
@Excel(name = "人名币单价", width = 15)
@ApiModelProperty(value = "人名币单价")
private BigDecimal cnyPrice;
}
@@ -19,7 +19,7 @@ import java.util.Date;
/**
* @Description: app_scene_cost_standard_version
* @Author: jeecg-boot
* @Date: 2024-08-02
* @Date: 2024-09-08
* @Version: V1.0
*/
@Data
@@ -32,71 +32,111 @@ public class AppSceneCostStandardVersion implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
* 主键id
*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "id")
private String id;
@ApiModelProperty(value = "主键id")
private Integer id;
/**
* 图号
* 项目名称
*/
@Excel(name = "图号", width = 15)
@ApiModelProperty(value = "图号")
private String figureNumber;
@Excel(name = "项目名称", width = 15)
@ApiModelProperty(value = "项目名称")
private String projectname;
/**
* 阶段,A-初始,B-首批,C-量产
* 阶段
*/
@Excel(name = "阶段,A-初始,B-首批,C-量产", width = 15)
@ApiModelProperty(value = "阶段,A-初始,B-首批,C-量产")
@Excel(name = "阶段", width = 15)
@ApiModelProperty(value = "阶段")
private String stage;
/**
* 物料号,关联kn_new_sap_mara表matnr字段
* 日期
*/
@Excel(name = "物料号,关联kn_new_sap_mara表matnr字段", width = 15)
@ApiModelProperty(value = "物料号,关联kn_new_sap_mara表matnr字段")
private String materialNumber;
@Excel(name = "日期", width = 15)
@ApiModelProperty(value = "日期")
private String date;
/**
* 版本号
*/
@Excel(name = "版本号", width = 15)
@ApiModelProperty(value = "版本号")
private String versionNumber;
private String version;
/**
* 版本状态
* 工厂
*/
@Excel(name = "版本状态", width = 15)
@ApiModelProperty(value = "版本状态")
private String versionStatus;
@Excel(name = "工厂", width = 15)
@ApiModelProperty(value = "工厂")
private String werks;
/**
* 创建人
* 物料号
*/
@ApiModelProperty(value = "创建人")
private String createBy;
@Excel(name = "物料号", width = 15)
@ApiModelProperty(value = "物料号")
private String matnr;
/**
* 状态
*/
@Excel(name = "状态", width = 15)
@ApiModelProperty(value = "状态")
private String status;
/**
* 创建时间
*/
@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建时间")
private Date createTime;
private Date createdtime;
/**
* 修改人
*/
@ApiModelProperty(value = "修改人")
private String updateBy;
/**
* 修改时间
* 完成时间
*/
@Excel(name = "完成时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "修改时间")
private Date updateTime;
@ApiModelProperty(value = "完成时间")
private Date finishtime;
/**
* 备注
* batchname
*/
@Excel(name = "备注", width = 15)
@ApiModelProperty(value = "备注")
private String remark;
@Excel(name = "batchname", width = 15)
@ApiModelProperty(value = "batchname")
private String batchname;
/**
* userid
*/
@Excel(name = "userid", width = 15)
@ApiModelProperty(value = "userid")
private Integer userid;
/**
* 图号
*/
@Excel(name = "图号", width = 15)
@ApiModelProperty(value = "图号")
private String graphicnumber;
/**
* projectpspid
*/
@Excel(name = "projectpspid", width = 15)
@ApiModelProperty(value = "projectpspid")
private String projectpspid;
/**
* projectcate
*/
@Excel(name = "projectcate", width = 15)
@ApiModelProperty(value = "projectcate")
private String projectcate;
/**
* keylost
*/
@Excel(name = "keylost", width = 15)
@ApiModelProperty(value = "keylost")
private Integer keylost;
/**
* mknum
*/
@Excel(name = "mknum", width = 15)
@ApiModelProperty(value = "mknum")
private Integer mknum;
/**
* 年份
*/
@@ -0,0 +1,17 @@
package com.zzsmart.qomo.kn.cost.manage.mapper;
import java.util.List;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostBomRelevancy;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: app_scene_cost_bom_relevancy
* @Author: jeecg-boot
* @Date: 2024-09-08
* @Version: V1.0
*/
public interface AppSceneCostBomRelevancyMapper extends BaseMapper<AppSceneCostBomRelevancy> {
}
@@ -0,0 +1,17 @@
package com.zzsmart.qomo.kn.cost.manage.mapper;
import java.util.List;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostProductProcessMaintenance;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: app_scene_cost_product_process_maintenance
* @Author: jeecg-boot
* @Date: 2024-09-08
* @Version: V1.0
*/
public interface AppSceneCostProductProcessMaintenanceMapper extends BaseMapper<AppSceneCostProductProcessMaintenance> {
}
@@ -0,0 +1,15 @@
package com.zzsmart.qomo.kn.cost.manage.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPurchaseRecord;
/**
* @Description: app_scene_cost_purchase_record
* @Author: jeecg-boot
* @Date: 2024-09-08
* @Version: V1.0
*/
public interface AppSceneCostPurchaseRecordMapper extends BaseMapper<AppSceneCostPurchaseRecord> {
}
@@ -1,15 +1,13 @@
package com.zzsmart.qomo.kn.cost.manage.mapper;
import java.util.List;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardVersion;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardVersion;
/**
* @Description: app_scene_cost_standard_version
* @Author: jeecg-boot
* @Date: 2024-08-02
* @Date: 2024-09-08
* @Version: V1.0
*/
public interface AppSceneCostStandardVersionMapper extends BaseMapper<AppSceneCostStandardVersion> {
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zzsmart.qomo.modules.demo.com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostBomRelevancyMapper">
</mapper>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostProductProcessMaintenanceMapper">
</mapper>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostPurchaseRecordMapper">
</mapper>
@@ -0,0 +1,14 @@
package com.zzsmart.qomo.kn.cost.manage.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostBomRelevancy;
/**
* @Description: app_scene_cost_bom_relevancy
* @Author: jeecg-boot
* @Date: 2024-09-08
* @Version: V1.0
*/
public interface IAppSceneCostBomRelevancyService extends IService<AppSceneCostBomRelevancy> {
}
@@ -0,0 +1,14 @@
package com.zzsmart.qomo.kn.cost.manage.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostProductProcessMaintenance;
/**
* @Description: app_scene_cost_product_process_maintenance
* @Author: jeecg-boot
* @Date: 2024-09-08
* @Version: V1.0
*/
public interface IAppSceneCostProductProcessMaintenanceService extends IService<AppSceneCostProductProcessMaintenance> {
}
@@ -0,0 +1,14 @@
package com.zzsmart.qomo.kn.cost.manage.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPurchaseRecord;
/**
* @Description: app_scene_cost_purchase_record
* @Author: jeecg-boot
* @Date: 2024-09-08
* @Version: V1.0
*/
public interface IAppSceneCostPurchaseRecordService extends IService<AppSceneCostPurchaseRecord> {
}
@@ -0,0 +1,19 @@
package com.zzsmart.qomo.kn.cost.manage.service.impl;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostBomRelevancy;
import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostBomRelevancyMapper;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostBomRelevancyService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description: app_scene_cost_bom_relevancy
* @Author: jeecg-boot
* @Date: 2024-09-08
* @Version: V1.0
*/
@Service
public class AppSceneCostBomRelevancyServiceImpl extends ServiceImpl<AppSceneCostBomRelevancyMapper, AppSceneCostBomRelevancy> implements IAppSceneCostBomRelevancyService {
}
@@ -102,11 +102,11 @@ public class AppSceneCostCountServiceImpl extends ServiceImpl<AppSceneCostCountM
@Override
public void addCostCountTask(AppSceneCostCount appSceneCostCount) {
//1.新增版本号记录成功后
AppSceneCostStandardVersion costStandardVersion = AppSceneCostStandardVersion.builder().figureNumber(appSceneCostCount.getDrawingNo()).materialNumber(appSceneCostCount.getMaterialNo()).stage(appSceneCostCount.getStage()).versionNumber(appSceneCostCount.getCostVersion()).versionYear(appSceneCostCount.getYear()).build();
AppSceneCostStandardVersion costStandardVersion = AppSceneCostStandardVersion.builder().graphicnumber(appSceneCostCount.getDrawingNo()).matnr(appSceneCostCount.getMaterialNo()).stage(appSceneCostCount.getStage()).version(appSceneCostCount.getCostVersion()).versionYear(appSceneCostCount.getYear()).build();
boolean save = costStandardVersionService.save(costStandardVersion);
//2.新增标准成本计算任务,并立即执行标准成本计算
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(CostCountStatusEnum.Executing.getValue()).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.getVersion()).status(CostCountStatusEnum.Executing.getValue()).createTime(new Date()).build();
boolean flag = save(appSceneCostCount1);
if (flag) {
//发送更新成本计算状态的队列消息(队列名:updateCostCountStatus)
@@ -0,0 +1,19 @@
package com.zzsmart.qomo.kn.cost.manage.service.impl;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostProductProcessMaintenance;
import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostProductProcessMaintenanceMapper;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostProductProcessMaintenanceService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description: app_scene_cost_product_process_maintenance
* @Author: jeecg-boot
* @Date: 2024-09-08
* @Version: V1.0
*/
@Service
public class AppSceneCostProductProcessMaintenanceServiceImpl extends ServiceImpl<AppSceneCostProductProcessMaintenanceMapper, AppSceneCostProductProcessMaintenance> implements IAppSceneCostProductProcessMaintenanceService {
}
@@ -0,0 +1,18 @@
package com.zzsmart.qomo.kn.cost.manage.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostPurchaseRecord;
import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostPurchaseRecordMapper;
import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostPurchaseRecordService;
import org.springframework.stereotype.Service;
/**
* @Description: app_scene_cost_purchase_record
* @Author: jeecg-boot
* @Date: 2024-09-08
* @Version: V1.0
*/
@Service
public class AppSceneCostPurchaseRecordServiceImpl extends ServiceImpl<AppSceneCostPurchaseRecordMapper, AppSceneCostPurchaseRecord> implements IAppSceneCostPurchaseRecordService {
}