diff --git a/qomo-kn-cost-manage-start/pom.xml b/qomo-kn-cost-manage-start/pom.xml
index ccb8b34..b9de334 100644
--- a/qomo-kn-cost-manage-start/pom.xml
+++ b/qomo-kn-cost-manage-start/pom.xml
@@ -33,6 +33,8 @@
test
+
+
com.zzsmart.qomo
qomo-kn-cost-manage
diff --git a/qomo-kn-cost-manage-start/src/main/resources/application-dev.yml b/qomo-kn-cost-manage-start/src/main/resources/application-dev.yml
index 32617fa..8fdbcdc 100644
--- a/qomo-kn-cost-manage-start/src/main/resources/application-dev.yml
+++ b/qomo-kn-cost-manage-start/src/main/resources/application-dev.yml
@@ -235,10 +235,17 @@ spring:
# allow-circular-references: true
redis:
database: 10
- host: localhost
+ host: 158.158.4.48
port: 6379
+ password: 'zzboard'
main:
allow-circular-references: true
+# redis:
+# database: 10
+# host: localhost
+# port: 6379
+# main:
+# allow-circular-references: true
#rabbitmq 配置
rabbitmq:
@@ -459,4 +466,10 @@ minio:
secret-key: qm123456
condaEnv: py310
-tikaServerUrl: http://192.168.50.99:8099/qomo-tika/
\ No newline at end of file
+tikaServerUrl: http://192.168.50.99:8099/qomo-tika/
+
+sap:
+ service:
+ url: http://158.158.5.98:7005/SAP_800/PS/SAP800_DSJ_ZSAP_DSJ_005_PS
+ user: sap_dsj
+ password: sapdsjabc123
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/pom.xml b/qomo-kn-cost-manage/pom.xml
index 827b04f..5c1e7d5 100644
--- a/qomo-kn-cost-manage/pom.xml
+++ b/qomo-kn-cost-manage/pom.xml
@@ -39,5 +39,10 @@
com.zzsmart.qomo
qomo-data-selfReport
+
+ commons-httpclient
+ commons-httpclient
+ 3.1
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostActualController.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostActualController.java
new file mode 100644
index 0000000..fbd1fd5
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostActualController.java
@@ -0,0 +1,248 @@
+package com.zzsmart.qomo.kn.cost.manage.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostActual;
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostActualService;
+import com.zzsmart.qomo.kn.cost.manage.vo.CostEffectiveVO;
+import com.zzsmart.qomo.kn.cost.manage.vo.LaborDiffVO;
+import com.zzsmart.qomo.kn.cost.manage.vo.RealLaborVO;
+import com.zzsmart.qomo.kn.cost.manage.vo.RealProduceVO;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+ /**
+ * @Description: app_scene_cost_actual
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+@Api(tags="app_scene_cost_actual")
+@RestController
+@RequestMapping("/cost/appSceneCostActual")
+@Slf4j
+public class AppSceneCostActualController extends JeecgController {
+ @Autowired
+ private IAppSceneCostActualService appSceneCostActualService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param appSceneCostActual
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_actual-分页列表查询")
+ @ApiOperation(value="app_scene_cost_actual-分页列表查询", notes="app_scene_cost_actual-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(AppSceneCostActual appSceneCostActual,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostActual, req.getParameterMap());
+ queryWrapper.orderByDesc("create_time");
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = appSceneCostActualService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param appSceneCostActual
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_actual-添加")
+ @ApiOperation(value="app_scene_cost_actual-添加", notes="app_scene_cost_actual-添加")
+ //@RequiresPermissions("cost:app_scene_cost_actual:add")
+ @PostMapping(value = "/add")
+ public Result add(@RequestBody CostEffectiveVO appSceneCostActual) {
+ appSceneCostActualService.addCostActual(appSceneCostActual);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param appSceneCostActual
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_actual-编辑")
+ @ApiOperation(value="app_scene_cost_actual-编辑", notes="app_scene_cost_actual-编辑")
+ @RequiresPermissions("cost:app_scene_cost_actual:edit")
+ @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+ public Result edit(@RequestBody AppSceneCostActual appSceneCostActual) {
+ appSceneCostActualService.updateById(appSceneCostActual);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_actual-通过id删除")
+ @ApiOperation(value="app_scene_cost_actual-通过id删除", notes="app_scene_cost_actual-通过id删除")
+ @RequiresPermissions("cost:app_scene_cost_actual:delete")
+ @DeleteMapping(value = "/delete")
+ public Result delete(@RequestParam(name="id",required=true) String id) {
+ appSceneCostActualService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_actual-批量删除")
+ @ApiOperation(value="app_scene_cost_actual-批量删除", notes="app_scene_cost_actual-批量删除")
+ @RequiresPermissions("cost:app_scene_cost_actual:deleteBatch")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.appSceneCostActualService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_actual-通过id查询")
+ @ApiOperation(value="app_scene_cost_actual-通过id查询", notes="app_scene_cost_actual-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result queryById(@RequestParam(name="id",required=true) String id) {
+ AppSceneCostActual appSceneCostActual = appSceneCostActualService.getById(id);
+ if(appSceneCostActual==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(appSceneCostActual);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param appSceneCostActual
+ */
+ @RequiresPermissions("cost:app_scene_cost_actual:exportXls")
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, AppSceneCostActual appSceneCostActual) {
+ return super.exportXls(request, appSceneCostActual, AppSceneCostActual.class, "app_scene_cost_actual");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequiresPermissions("cost:app_scene_cost_actual:importExcel")
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, AppSceneCostActual.class);
+ }
+
+ @ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
+ @GetMapping(value = "/queryParent")
+ public Result> queryParent(@RequestParam(name="resultid", defaultValue="") int resultid,
+ @RequestParam(name="matnr", defaultValue="") String matnr) {
+ List vo = appSceneCostActualService.queryParent(resultid,matnr);
+ return Result.OK(vo);
+ }
+
+ /* 根据物料号查询标准成本版本及订单号
+ *
+ * @param appSceneCostMiningResult
+ * @param req
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_mining_result-分页列表查询")
+ @ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
+ @GetMapping(value = "/queryMatnrDetail")
+ public Result> queryMatnrDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
+ @RequestParam(name="matnr", defaultValue="") String matnr) {
+ List vo = appSceneCostActualService.queryMatnrDetail(resultid,matnr);
+ return Result.OK(vo);
+ }
+
+ @ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
+ @GetMapping(value = "/queryAufnrDetail")
+ public Result> queryAufnrDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
+ @RequestParam(name="matnr", defaultValue="") String matnr) {
+ List vo = appSceneCostActualService.queryAufnrDetail(resultid,matnr);
+ return Result.OK(vo);
+ }
+
+ @ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
+ @GetMapping(value = "/queryProduceDetail")
+ public Result> queryProduceDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
+ @RequestParam(name="matnr", defaultValue="") String matnr) {
+ List vo = appSceneCostActualService.queryProduceDetail(resultid,matnr);
+ return Result.OK(vo);
+ }
+
+
+ @ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
+ @RequestMapping(value = "/exportMatnrDetail")
+ public ModelAndView exportMatnrDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
+ @RequestParam(name="matnr", defaultValue="") String matnr) {
+ return appSceneCostActualService.exportMatnrDetail(resultid,matnr);
+ }
+
+ @ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
+ @RequestMapping(value = "/exportLaborDetail")
+ public ModelAndView exportLaborDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
+ @RequestParam(name="matnr", defaultValue="") String matnr) {
+ return appSceneCostActualService.exportLaborDetail(resultid,matnr);
+ }
+
+ @ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
+ @RequestMapping(value = "/exportProduceDetail")
+ public ModelAndView exportProduceDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
+ @RequestParam(name="matnr", defaultValue="") String matnr) {
+ return appSceneCostActualService.exportProduceDetail(resultid,matnr);
+ }
+
+
+ }
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostAufnrMatnrController.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostAufnrMatnrController.java
new file mode 100644
index 0000000..1e49198
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostAufnrMatnrController.java
@@ -0,0 +1,179 @@
+package com.zzsmart.qomo.kn.cost.manage.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostAufnrMatnr;
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostAufnrMatnrService;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+ /**
+ * @Description: app_scene_cost_aufnr_matnr
+ * @Author: jeecg-boot
+ * @Date: 2024-10-05
+ * @Version: V1.0
+ */
+@Api(tags="app_scene_cost_aufnr_matnr")
+@RestController
+@RequestMapping("/cost/appSceneCostAufnrMatnr")
+@Slf4j
+public class AppSceneCostAufnrMatnrController extends JeecgController {
+ @Autowired
+ private IAppSceneCostAufnrMatnrService appSceneCostAufnrMatnrService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param appSceneCostAufnrMatnr
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_aufnr_matnr-分页列表查询")
+ @ApiOperation(value="app_scene_cost_aufnr_matnr-分页列表查询", notes="app_scene_cost_aufnr_matnr-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(AppSceneCostAufnrMatnr appSceneCostAufnrMatnr,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostAufnrMatnr, req.getParameterMap());
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = appSceneCostAufnrMatnrService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param appSceneCostAufnrMatnr
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_aufnr_matnr-添加")
+ @ApiOperation(value="app_scene_cost_aufnr_matnr-添加", notes="app_scene_cost_aufnr_matnr-添加")
+ @RequiresPermissions("cost:app_scene_cost_aufnr_matnr:add")
+ @PostMapping(value = "/add")
+ public Result add(@RequestBody AppSceneCostAufnrMatnr appSceneCostAufnrMatnr) {
+ appSceneCostAufnrMatnrService.save(appSceneCostAufnrMatnr);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param appSceneCostAufnrMatnr
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_aufnr_matnr-编辑")
+ @ApiOperation(value="app_scene_cost_aufnr_matnr-编辑", notes="app_scene_cost_aufnr_matnr-编辑")
+ @RequiresPermissions("cost:app_scene_cost_aufnr_matnr:edit")
+ @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+ public Result edit(@RequestBody AppSceneCostAufnrMatnr appSceneCostAufnrMatnr) {
+ appSceneCostAufnrMatnrService.updateById(appSceneCostAufnrMatnr);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_aufnr_matnr-通过id删除")
+ @ApiOperation(value="app_scene_cost_aufnr_matnr-通过id删除", notes="app_scene_cost_aufnr_matnr-通过id删除")
+ @RequiresPermissions("cost:app_scene_cost_aufnr_matnr:delete")
+ @DeleteMapping(value = "/delete")
+ public Result delete(@RequestParam(name="id",required=true) String id) {
+ appSceneCostAufnrMatnrService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_aufnr_matnr-批量删除")
+ @ApiOperation(value="app_scene_cost_aufnr_matnr-批量删除", notes="app_scene_cost_aufnr_matnr-批量删除")
+ @RequiresPermissions("cost:app_scene_cost_aufnr_matnr:deleteBatch")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.appSceneCostAufnrMatnrService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_aufnr_matnr-通过id查询")
+ @ApiOperation(value="app_scene_cost_aufnr_matnr-通过id查询", notes="app_scene_cost_aufnr_matnr-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result queryById(@RequestParam(name="id",required=true) String id) {
+ AppSceneCostAufnrMatnr appSceneCostAufnrMatnr = appSceneCostAufnrMatnrService.getById(id);
+ if(appSceneCostAufnrMatnr==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(appSceneCostAufnrMatnr);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param appSceneCostAufnrMatnr
+ */
+ @RequiresPermissions("cost:app_scene_cost_aufnr_matnr:exportXls")
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, AppSceneCostAufnrMatnr appSceneCostAufnrMatnr) {
+ return super.exportXls(request, appSceneCostAufnrMatnr, AppSceneCostAufnrMatnr.class, "app_scene_cost_aufnr_matnr");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequiresPermissions("cost:app_scene_cost_aufnr_matnr:importExcel")
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, AppSceneCostAufnrMatnr.class);
+ }
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostCountController.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostCountController.java
index 701abbf..4821fb3 100644
--- a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostCountController.java
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostCountController.java
@@ -53,23 +53,24 @@ public class AppSceneCostCountController extends JeecgController> queryPageList(AppSceneCostCount appSceneCostCount, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
+ public Result> queryPageList(AppSceneCostCount appSceneCostCount, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostCount, req.getParameterMap());
queryWrapper.orderByDesc("create_time");
Page page = new Page(pageNo, pageSize);
IPage pageList = appSceneCostCountService.page(page, queryWrapper);
- IPage pageList1 = new Page<>();
- BeanUtils.copyProperties(pageList, pageList1);
- Listlist=new ArrayList<>();
- for(int i=0;i pageList1 = new Page<>();
+ //BeanUtils.copyProperties(pageList, pageList1);
+// Listlist=new ArrayList<>();
+// for(int i=0;i importExcel(HttpServletRequest request, HttpServletResponse response) {
- return super.importExcel(request, response, AppSceneCostCount.class);
+ //return super.importExcel(request, response, AppSceneCostCount.class);
+ return appSceneCostCountService.BatchCount(request,response);
}
}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostInvoiceController.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostInvoiceController.java
new file mode 100644
index 0000000..10b0210
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostInvoiceController.java
@@ -0,0 +1,178 @@
+package com.zzsmart.qomo.kn.cost.manage.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostInvoice;
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostInvoiceService;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+ /**
+ * @Description: app_scene_cost_invoice
+ * @Author: jeecg-boot
+ * @Date: 2024-09-22
+ * @Version: V1.0
+ */
+@Api(tags="app_scene_cost_invoice")
+@RestController
+@RequestMapping("/cost/appSceneCostInvoice")
+@Slf4j
+public class AppSceneCostInvoiceController extends JeecgController {
+ @Autowired
+ private IAppSceneCostInvoiceService appSceneCostInvoiceService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param appSceneCostInvoice
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_invoice-分页列表查询")
+ @ApiOperation(value="app_scene_cost_invoice-分页列表查询", notes="app_scene_cost_invoice-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(AppSceneCostInvoice appSceneCostInvoice,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostInvoice, req.getParameterMap());
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = appSceneCostInvoiceService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param appSceneCostInvoice
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_invoice-添加")
+ @ApiOperation(value="app_scene_cost_invoice-添加", notes="app_scene_cost_invoice-添加")
+ @RequiresPermissions("cost:app_scene_cost_invoice:add")
+ @PostMapping(value = "/add")
+ public Result add(@RequestBody AppSceneCostInvoice appSceneCostInvoice) {
+ appSceneCostInvoiceService.save(appSceneCostInvoice);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param appSceneCostInvoice
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_invoice-编辑")
+ @ApiOperation(value="app_scene_cost_invoice-编辑", notes="app_scene_cost_invoice-编辑")
+ @RequiresPermissions("cost:app_scene_cost_invoice:edit")
+ @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+ public Result edit(@RequestBody AppSceneCostInvoice appSceneCostInvoice) {
+ appSceneCostInvoiceService.updateById(appSceneCostInvoice);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_invoice-通过id删除")
+ @ApiOperation(value="app_scene_cost_invoice-通过id删除", notes="app_scene_cost_invoice-通过id删除")
+ @RequiresPermissions("cost:app_scene_cost_invoice:delete")
+ @DeleteMapping(value = "/delete")
+ public Result delete(@RequestParam(name="id",required=true) String id) {
+ appSceneCostInvoiceService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_invoice-批量删除")
+ @ApiOperation(value="app_scene_cost_invoice-批量删除", notes="app_scene_cost_invoice-批量删除")
+ @RequiresPermissions("cost:app_scene_cost_invoice:deleteBatch")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.appSceneCostInvoiceService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_invoice-通过id查询")
+ @ApiOperation(value="app_scene_cost_invoice-通过id查询", notes="app_scene_cost_invoice-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result queryById(@RequestParam(name="id",required=true) String id) {
+ AppSceneCostInvoice appSceneCostInvoice = appSceneCostInvoiceService.getById(id);
+ if(appSceneCostInvoice==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(appSceneCostInvoice);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param appSceneCostInvoice
+ */
+ @RequiresPermissions("cost:app_scene_cost_invoice:exportXls")
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, AppSceneCostInvoice appSceneCostInvoice) {
+ return super.exportXls(request, appSceneCostInvoice, AppSceneCostInvoice.class, "app_scene_cost_invoice");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequiresPermissions("cost:app_scene_cost_invoice:importExcel")
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, AppSceneCostInvoice.class);
+ }
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningAufnrController.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningAufnrController.java
new file mode 100644
index 0000000..2768afb
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningAufnrController.java
@@ -0,0 +1,196 @@
+package com.zzsmart.qomo.kn.cost.manage.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningAufnr;
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningAufnrService;
+import com.zzsmart.qomo.kn.cost.manage.vo.AufnrDiff;
+import com.zzsmart.qomo.kn.cost.manage.vo.AufnrExportVO;
+import com.zzsmart.qomo.kn.cost.manage.vo.LaborDiffVO;
+import com.zzsmart.qomo.kn.cost.manage.vo.ProduceDiffVO;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+ /**
+ * @Description: app_scene_cost_mining_aufnr
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+@Api(tags="app_scene_cost_mining_aufnr")
+@RestController
+@RequestMapping("//appSceneCostMiningAufnr")
+@Slf4j
+public class AppSceneCostMiningAufnrController extends JeecgController {
+ @Autowired
+ private IAppSceneCostMiningAufnrService appSceneCostMiningAufnrService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param appSceneCostMiningAufnr
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_mining_aufnr-分页列表查询")
+ @ApiOperation(value="app_scene_cost_mining_aufnr-分页列表查询", notes="app_scene_cost_mining_aufnr-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(AppSceneCostMiningAufnr appSceneCostMiningAufnr,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningAufnr, req.getParameterMap());
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = appSceneCostMiningAufnrService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param appSceneCostMiningAufnr
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_aufnr-添加")
+ @ApiOperation(value="app_scene_cost_mining_aufnr-添加", notes="app_scene_cost_mining_aufnr-添加")
+ @RequiresPermissions(":app_scene_cost_mining_aufnr:add")
+ @PostMapping(value = "/add")
+ public Result add(@RequestBody AppSceneCostMiningAufnr appSceneCostMiningAufnr) {
+ appSceneCostMiningAufnrService.save(appSceneCostMiningAufnr);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param appSceneCostMiningAufnr
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_aufnr-编辑")
+ @ApiOperation(value="app_scene_cost_mining_aufnr-编辑", notes="app_scene_cost_mining_aufnr-编辑")
+ @RequiresPermissions(":app_scene_cost_mining_aufnr:edit")
+ @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+ public Result edit(@RequestBody AppSceneCostMiningAufnr appSceneCostMiningAufnr) {
+ appSceneCostMiningAufnrService.updateById(appSceneCostMiningAufnr);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_aufnr-通过id删除")
+ @ApiOperation(value="app_scene_cost_mining_aufnr-通过id删除", notes="app_scene_cost_mining_aufnr-通过id删除")
+ @RequiresPermissions(":app_scene_cost_mining_aufnr:delete")
+ @DeleteMapping(value = "/delete")
+ public Result delete(@RequestParam(name="id",required=true) String id) {
+ appSceneCostMiningAufnrService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_aufnr-批量删除")
+ @ApiOperation(value="app_scene_cost_mining_aufnr-批量删除", notes="app_scene_cost_mining_aufnr-批量删除")
+ @RequiresPermissions(":app_scene_cost_mining_aufnr:deleteBatch")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.appSceneCostMiningAufnrService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_mining_aufnr-通过id查询")
+ @ApiOperation(value="app_scene_cost_mining_aufnr-通过id查询", notes="app_scene_cost_mining_aufnr-通过id查询")
+ @GetMapping(value = "/queryLaborById")
+ public Result > queryLaborById(@RequestParam(name="id",required=true) int id) {
+ List appSceneCostMiningAufnr = appSceneCostMiningAufnrService.getLaborByResultid(id);
+ if(appSceneCostMiningAufnr==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(appSceneCostMiningAufnr);
+ }
+
+ @ApiOperation(value="app_scene_cost_mining_aufnr-通过id查询", notes="app_scene_cost_mining_aufnr-通过id查询")
+ @GetMapping(value = "/queryProduceById")
+ public Result > queryProduceById(@RequestParam(name="id",required=true) int id) {
+ List appSceneCostMiningAufnr = appSceneCostMiningAufnrService.getProduceByResultid(id);
+ if(appSceneCostMiningAufnr==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(appSceneCostMiningAufnr);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param appSceneCostMiningAufnr
+ */
+ //@RequiresPermissions(":app_scene_cost_mining_aufnr:exportXls")
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, AufnrExportVO appSceneCostMiningAufnr) {
+ return appSceneCostMiningAufnrService.exportXls2(request, appSceneCostMiningAufnr, AppSceneCostMiningAufnr.class, "人工制费差异");
+ }
+
+
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequiresPermissions(":app_scene_cost_mining_aufnr:importExcel")
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, AppSceneCostMiningAufnr.class);
+ }
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningDiffController.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningDiffController.java
new file mode 100644
index 0000000..fb8cfab
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningDiffController.java
@@ -0,0 +1,181 @@
+package com.zzsmart.qomo.kn.cost.manage.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningDiff;
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningDiffService;
+import com.zzsmart.qomo.kn.cost.manage.vo.MiningDiffTotalVO;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+ /**
+ * @Description: app_scene_cost_mining_diff
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+@Api(tags="app_scene_cost_mining_diff")
+@RestController
+@RequestMapping("//appSceneCostMiningDiff")
+@Slf4j
+public class AppSceneCostMiningDiffController extends JeecgController {
+ @Autowired
+ private IAppSceneCostMiningDiffService appSceneCostMiningDiffService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param appSceneCostMiningDiff
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_mining_diff-分页列表查询")
+ @ApiOperation(value="app_scene_cost_mining_diff-分页列表查询", notes="app_scene_cost_mining_diff-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(AppSceneCostMiningDiff appSceneCostMiningDiff,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningDiff, req.getParameterMap());
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = appSceneCostMiningDiffService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param appSceneCostMiningDiff
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_diff-添加")
+ @ApiOperation(value="app_scene_cost_mining_diff-添加", notes="app_scene_cost_mining_diff-添加")
+ @RequiresPermissions(":app_scene_cost_mining_diff:add")
+ @PostMapping(value = "/add")
+ public Result add(@RequestBody AppSceneCostMiningDiff appSceneCostMiningDiff) {
+ appSceneCostMiningDiffService.save(appSceneCostMiningDiff);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param appSceneCostMiningDiff
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_diff-编辑")
+ @ApiOperation(value="app_scene_cost_mining_diff-编辑", notes="app_scene_cost_mining_diff-编辑")
+ @RequiresPermissions(":app_scene_cost_mining_diff:edit")
+ @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+ public Result edit(@RequestBody AppSceneCostMiningDiff appSceneCostMiningDiff) {
+ appSceneCostMiningDiffService.updateById(appSceneCostMiningDiff);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_diff-通过id删除")
+ @ApiOperation(value="app_scene_cost_mining_diff-通过id删除", notes="app_scene_cost_mining_diff-通过id删除")
+ @RequiresPermissions(":app_scene_cost_mining_diff:delete")
+ @DeleteMapping(value = "/delete")
+ public Result delete(@RequestParam(name="id",required=true) String id) {
+ appSceneCostMiningDiffService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_diff-批量删除")
+ @ApiOperation(value="app_scene_cost_mining_diff-批量删除", notes="app_scene_cost_mining_diff-批量删除")
+ @RequiresPermissions(":app_scene_cost_mining_diff:deleteBatch")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.appSceneCostMiningDiffService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_mining_diff-通过id查询")
+ @ApiOperation(value="app_scene_cost_mining_diff-通过id查询", notes="app_scene_cost_mining_diff-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result> queryById(@RequestParam(name="id",required=true) int id) {
+ List appSceneCostMiningDiff = appSceneCostMiningDiffService.getMiningDiffTotalById(id);
+ if(appSceneCostMiningDiff==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(appSceneCostMiningDiff);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param appSceneCostMiningDiff
+ */
+ @RequiresPermissions(":app_scene_cost_mining_diff:exportXls")
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningDiff appSceneCostMiningDiff) {
+ return super.exportXls(request, appSceneCostMiningDiff, AppSceneCostMiningDiff.class, "app_scene_cost_mining_diff");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequiresPermissions(":app_scene_cost_mining_diff:importExcel")
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, AppSceneCostMiningDiff.class);
+ }
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningLaborController.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningLaborController.java
new file mode 100644
index 0000000..153eecf
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningLaborController.java
@@ -0,0 +1,179 @@
+package com.zzsmart.qomo.kn.cost.manage.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningLabor;
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningLaborService;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+ /**
+ * @Description: app_scene_cost_mining_labor
+ * @Author: jeecg-boot
+ * @Date: 2024-11-05
+ * @Version: V1.0
+ */
+@Api(tags="app_scene_cost_mining_labor")
+@RestController
+@RequestMapping("//appSceneCostMiningLabor")
+@Slf4j
+public class AppSceneCostMiningLaborController extends JeecgController {
+ @Autowired
+ private IAppSceneCostMiningLaborService appSceneCostMiningLaborService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param appSceneCostMiningLabor
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_mining_labor-分页列表查询")
+ @ApiOperation(value="app_scene_cost_mining_labor-分页列表查询", notes="app_scene_cost_mining_labor-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(AppSceneCostMiningLabor appSceneCostMiningLabor,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningLabor, req.getParameterMap());
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = appSceneCostMiningLaborService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param appSceneCostMiningLabor
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_labor-添加")
+ @ApiOperation(value="app_scene_cost_mining_labor-添加", notes="app_scene_cost_mining_labor-添加")
+ @RequiresPermissions(":app_scene_cost_mining_labor:add")
+ @PostMapping(value = "/add")
+ public Result add(@RequestBody AppSceneCostMiningLabor appSceneCostMiningLabor) {
+ appSceneCostMiningLaborService.save(appSceneCostMiningLabor);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param appSceneCostMiningLabor
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_labor-编辑")
+ @ApiOperation(value="app_scene_cost_mining_labor-编辑", notes="app_scene_cost_mining_labor-编辑")
+ @RequiresPermissions(":app_scene_cost_mining_labor:edit")
+ @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+ public Result edit(@RequestBody AppSceneCostMiningLabor appSceneCostMiningLabor) {
+ appSceneCostMiningLaborService.updateById(appSceneCostMiningLabor);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_labor-通过id删除")
+ @ApiOperation(value="app_scene_cost_mining_labor-通过id删除", notes="app_scene_cost_mining_labor-通过id删除")
+ @RequiresPermissions(":app_scene_cost_mining_labor:delete")
+ @DeleteMapping(value = "/delete")
+ public Result delete(@RequestParam(name="id",required=true) String id) {
+ appSceneCostMiningLaborService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_labor-批量删除")
+ @ApiOperation(value="app_scene_cost_mining_labor-批量删除", notes="app_scene_cost_mining_labor-批量删除")
+ @RequiresPermissions(":app_scene_cost_mining_labor:deleteBatch")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.appSceneCostMiningLaborService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_mining_labor-通过id查询")
+ @ApiOperation(value="app_scene_cost_mining_labor-通过id查询", notes="app_scene_cost_mining_labor-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result queryById(@RequestParam(name="id",required=true) String id) {
+ AppSceneCostMiningLabor appSceneCostMiningLabor = appSceneCostMiningLaborService.getById(id);
+ if(appSceneCostMiningLabor==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(appSceneCostMiningLabor);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param appSceneCostMiningLabor
+ */
+ @RequiresPermissions(":app_scene_cost_mining_labor:exportXls")
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningLabor appSceneCostMiningLabor) {
+ return super.exportXls(request, appSceneCostMiningLabor, AppSceneCostMiningLabor.class, "app_scene_cost_mining_labor");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequiresPermissions(":app_scene_cost_mining_labor:importExcel")
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, AppSceneCostMiningLabor.class);
+ }
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningMaterialController.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningMaterialController.java
new file mode 100644
index 0000000..6e12098
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningMaterialController.java
@@ -0,0 +1,184 @@
+package com.zzsmart.qomo.kn.cost.manage.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningMaterial;
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningMaterialService;
+import com.zzsmart.qomo.kn.cost.manage.vo.MaterialDiff;
+import com.zzsmart.qomo.kn.cost.manage.vo.MiningDiffTotalVO;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+ /**
+ * @Description: app_scene_cost_mining_material
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+@Api(tags="app_scene_cost_mining_material")
+@RestController
+@RequestMapping("//appSceneCostMiningMaterial")
+@Slf4j
+public class AppSceneCostMiningMaterialController extends JeecgController {
+ @Autowired
+ private IAppSceneCostMiningMaterialService appSceneCostMiningMaterialService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param appSceneCostMiningMaterial
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_mining_material-分页列表查询")
+ @ApiOperation(value="app_scene_cost_mining_material-分页列表查询", notes="app_scene_cost_mining_material-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(AppSceneCostMiningMaterial appSceneCostMiningMaterial,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningMaterial, req.getParameterMap());
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = appSceneCostMiningMaterialService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param appSceneCostMiningMaterial
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_material-添加")
+ @ApiOperation(value="app_scene_cost_mining_material-添加", notes="app_scene_cost_mining_material-添加")
+ @RequiresPermissions(":app_scene_cost_mining_material:add")
+ @PostMapping(value = "/add")
+ public Result add(@RequestBody AppSceneCostMiningMaterial appSceneCostMiningMaterial) {
+ appSceneCostMiningMaterialService.save(appSceneCostMiningMaterial);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param appSceneCostMiningMaterial
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_material-编辑")
+ @ApiOperation(value="app_scene_cost_mining_material-编辑", notes="app_scene_cost_mining_material-编辑")
+ @RequiresPermissions(":app_scene_cost_mining_material:edit")
+ @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+ public Result edit(@RequestBody AppSceneCostMiningMaterial appSceneCostMiningMaterial) {
+ appSceneCostMiningMaterialService.updateById(appSceneCostMiningMaterial);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_material-通过id删除")
+ @ApiOperation(value="app_scene_cost_mining_material-通过id删除", notes="app_scene_cost_mining_material-通过id删除")
+ @RequiresPermissions(":app_scene_cost_mining_material:delete")
+ @DeleteMapping(value = "/delete")
+ public Result delete(@RequestParam(name="id",required=true) String id) {
+ appSceneCostMiningMaterialService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_material-批量删除")
+ @ApiOperation(value="app_scene_cost_mining_material-批量删除", notes="app_scene_cost_mining_material-批量删除")
+ @RequiresPermissions(":app_scene_cost_mining_material:deleteBatch")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.appSceneCostMiningMaterialService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_mining_material-通过id查询")
+ @ApiOperation(value="app_scene_cost_mining_material-通过id查询", notes="app_scene_cost_mining_material-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result> queryById(@RequestParam(name="id",required=true) int id) {
+ List appSceneCostMiningMaterial = appSceneCostMiningMaterialService.getByResultid(id);
+ if(appSceneCostMiningMaterial==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(appSceneCostMiningMaterial);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param appSceneCostMiningMaterial
+ */
+ //@RequiresPermissions(":app_scene_cost_mining_material:exportXls")
+ @GetMapping(value = "/exportXls")
+ @ApiOperation(value = "cost-材料差异导出", notes = "cost-材料差异导出")
+ public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningMaterial appSceneCostMiningMaterial) {
+ //return super.exportXls(request)
+ return appSceneCostMiningMaterialService.exportXls2(request, appSceneCostMiningMaterial,AppSceneCostMiningMaterial.class, "材料差异明细");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequiresPermissions(":app_scene_cost_mining_material:importExcel")
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, AppSceneCostMiningMaterial.class);
+ }
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningReasonController.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningReasonController.java
new file mode 100644
index 0000000..6035ed4
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningReasonController.java
@@ -0,0 +1,179 @@
+package com.zzsmart.qomo.kn.cost.manage.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningReason;
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningReasonService;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+ /**
+ * @Description: app_scene_cost_mining_reason
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+@Api(tags="app_scene_cost_mining_reason")
+@RestController
+@RequestMapping("//appSceneCostMiningReason")
+@Slf4j
+public class AppSceneCostMiningReasonController extends JeecgController {
+ @Autowired
+ private IAppSceneCostMiningReasonService appSceneCostMiningReasonService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param appSceneCostMiningReason
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_mining_reason-分页列表查询")
+ @ApiOperation(value="app_scene_cost_mining_reason-分页列表查询", notes="app_scene_cost_mining_reason-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(AppSceneCostMiningReason appSceneCostMiningReason,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningReason, req.getParameterMap());
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = appSceneCostMiningReasonService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param appSceneCostMiningReason
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_reason-添加")
+ @ApiOperation(value="app_scene_cost_mining_reason-添加", notes="app_scene_cost_mining_reason-添加")
+ @RequiresPermissions(":app_scene_cost_mining_reason:add")
+ @PostMapping(value = "/add")
+ public Result add(@RequestBody AppSceneCostMiningReason appSceneCostMiningReason) {
+ appSceneCostMiningReasonService.save(appSceneCostMiningReason);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param appSceneCostMiningReason
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_reason-编辑")
+ @ApiOperation(value="app_scene_cost_mining_reason-编辑", notes="app_scene_cost_mining_reason-编辑")
+ @RequiresPermissions(":app_scene_cost_mining_reason:edit")
+ @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+ public Result edit(@RequestBody AppSceneCostMiningReason appSceneCostMiningReason) {
+ appSceneCostMiningReasonService.updateById(appSceneCostMiningReason);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_reason-通过id删除")
+ @ApiOperation(value="app_scene_cost_mining_reason-通过id删除", notes="app_scene_cost_mining_reason-通过id删除")
+ @RequiresPermissions(":app_scene_cost_mining_reason:delete")
+ @DeleteMapping(value = "/delete")
+ public Result delete(@RequestParam(name="id",required=true) String id) {
+ appSceneCostMiningReasonService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_reason-批量删除")
+ @ApiOperation(value="app_scene_cost_mining_reason-批量删除", notes="app_scene_cost_mining_reason-批量删除")
+ @RequiresPermissions(":app_scene_cost_mining_reason:deleteBatch")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.appSceneCostMiningReasonService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_mining_reason-通过id查询")
+ @ApiOperation(value="app_scene_cost_mining_reason-通过id查询", notes="app_scene_cost_mining_reason-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result queryById(@RequestParam(name="id",required=true) String id) {
+ AppSceneCostMiningReason appSceneCostMiningReason = appSceneCostMiningReasonService.getById(id);
+ if(appSceneCostMiningReason==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(appSceneCostMiningReason);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param appSceneCostMiningReason
+ */
+ @RequiresPermissions(":app_scene_cost_mining_reason:exportXls")
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningReason appSceneCostMiningReason) {
+ return super.exportXls(request, appSceneCostMiningReason, AppSceneCostMiningReason.class, "app_scene_cost_mining_reason");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequiresPermissions(":app_scene_cost_mining_reason:importExcel")
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, AppSceneCostMiningReason.class);
+ }
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningResultController.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningResultController.java
new file mode 100644
index 0000000..73e46fd
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostMiningResultController.java
@@ -0,0 +1,213 @@
+package com.zzsmart.qomo.kn.cost.manage.controller;
+
+import java.util.Arrays;
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningResult;
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
+import com.zzsmart.qomo.kn.cost.manage.plugin.CostEffectiveService;
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostCountService;
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostMiningResultService;
+import com.zzsmart.qomo.kn.cost.manage.vo.MatnrVersionVO;
+import com.zzsmart.qomo.kn.cost.manage.vo.MiningResultVO;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+ /**
+ * @Description: app_scene_cost_mining_result
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+@Api(tags="app_scene_cost_mining_result")
+@RestController
+@RequestMapping("//appSceneCostMiningResult")
+@Slf4j
+public class AppSceneCostMiningResultController extends JeecgController {
+ @Autowired
+ private IAppSceneCostMiningResultService appSceneCostMiningResultService;
+
+ @Autowired
+ private CostEffectiveService costEffectiveService;
+
+ @Autowired
+ private IAppSceneCostCountService iAppSceneCostCountService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param appSceneCostMiningResult
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_mining_result-分页列表查询")
+ @ApiOperation(value="app_scene_cost_mining_result-分页列表查询", notes="app_scene_cost_mining_result-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(AppSceneCostMiningResult appSceneCostMiningResult,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningResult, req.getParameterMap());
+ queryWrapper.orderByDesc("startdate");
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = appSceneCostMiningResultService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param appSceneCostMiningResult
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_result-添加")
+ @ApiOperation(value="app_scene_cost_mining_result-添加", notes="app_scene_cost_mining_result-添加")
+ //@RequiresPermissions(":app_scene_cost_mining_result:add")
+ @PostMapping(value = "/add")
+ public Result add(@RequestBody MiningResultVO miningResultVO) {
+ //appSceneCostMiningResultService.save(appSceneCostMiningResult);
+ costEffectiveService.FindNode(miningResultVO.getMatnr(),miningResultVO.getYmonth(),miningResultVO.getWerks(),miningResultVO.getVersion(),miningResultVO.getAufnr(),"",true);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param appSceneCostMiningResult
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_result-编辑")
+ @ApiOperation(value="app_scene_cost_mining_result-编辑", notes="app_scene_cost_mining_result-编辑")
+ @RequiresPermissions(":app_scene_cost_mining_result:edit")
+ @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+ public Result edit(@RequestBody AppSceneCostMiningResult appSceneCostMiningResult) {
+ appSceneCostMiningResultService.updateById(appSceneCostMiningResult);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_result-通过id删除")
+ @ApiOperation(value="app_scene_cost_mining_result-通过id删除", notes="app_scene_cost_mining_result-通过id删除")
+ @RequiresPermissions(":app_scene_cost_mining_result:delete")
+ @DeleteMapping(value = "/delete")
+ public Result delete(@RequestParam(name="id",required=true) String id) {
+ appSceneCostMiningResultService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_mining_result-批量删除")
+ @ApiOperation(value="app_scene_cost_mining_result-批量删除", notes="app_scene_cost_mining_result-批量删除")
+ @RequiresPermissions(":app_scene_cost_mining_result:deleteBatch")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.appSceneCostMiningResultService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_mining_result-通过id查询")
+ @ApiOperation(value="app_scene_cost_mining_result-通过id查询", notes="app_scene_cost_mining_result-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result queryById(@RequestParam(name="id",required=true) String id) {
+ AppSceneCostMiningResult appSceneCostMiningResult = appSceneCostMiningResultService.getById(id);
+ if(appSceneCostMiningResult==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(appSceneCostMiningResult);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param appSceneCostMiningResult
+ */
+ @RequiresPermissions(":app_scene_cost_mining_result:exportXls")
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, AppSceneCostMiningResult appSceneCostMiningResult) {
+ return super.exportXls(request, appSceneCostMiningResult, AppSceneCostMiningResult.class, "app_scene_cost_mining_result");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequiresPermissions(":app_scene_cost_mining_result:importExcel")
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, AppSceneCostMiningResult.class);
+ }
+
+ /* 根据物料号查询标准成本版本及订单号
+ *
+ * @param appSceneCostMiningResult
+ * @param req
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_mining_result-分页列表查询")
+ @ApiOperation(value="app_scene_cost_mining_result-版本查询", notes="app_scene_cost_mining_result-分页列表查询")
+ @GetMapping(value = "/queryVersion")
+ public Result queryPageList(@RequestParam(name="werks", defaultValue="") String werks,
+ @RequestParam(name="matnr", defaultValue="") String matnr,
+ @RequestParam(name="ymonth", defaultValue="") String ymonth,
+ HttpServletRequest req) {
+ MatnrVersionVO vo = iAppSceneCostCountService.getVersionsByMatnr(werks,matnr,ymonth);
+ return Result.OK(vo);
+ }
+
+
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapAfruController.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapAfruController.java
new file mode 100644
index 0000000..925363f
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapAfruController.java
@@ -0,0 +1,180 @@
+package com.zzsmart.qomo.kn.cost.manage.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapAfru;
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapAfruService;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+ /**
+ * @Description: app_scene_cost_sap_afru
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+@Api(tags="app_scene_cost_sap_afru")
+@RestController
+@RequestMapping("/cost/appSceneCostSapAfru")
+@Slf4j
+public class AppSceneCostSapAfruController extends JeecgController {
+ @Autowired
+ private IAppSceneCostSapAfruService appSceneCostSapAfruService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param appSceneCostSapAfru
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_sap_afru-分页列表查询")
+ @ApiOperation(value="app_scene_cost_sap_afru-分页列表查询", notes="app_scene_cost_sap_afru-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(AppSceneCostSapAfru appSceneCostSapAfru,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapAfru, req.getParameterMap());
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = appSceneCostSapAfruService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param appSceneCostSapAfru
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_afru-添加")
+ @ApiOperation(value="app_scene_cost_sap_afru-添加", notes="app_scene_cost_sap_afru-添加")
+ @RequiresPermissions("cost:app_scene_cost_sap_afru:add")
+ @PostMapping(value = "/add")
+ public Result add(@RequestBody AppSceneCostSapAfru appSceneCostSapAfru) {
+ appSceneCostSapAfruService.save(appSceneCostSapAfru);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param appSceneCostSapAfru
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_afru-编辑")
+ @ApiOperation(value="app_scene_cost_sap_afru-编辑", notes="app_scene_cost_sap_afru-编辑")
+ @RequiresPermissions("cost:app_scene_cost_sap_afru:edit")
+ @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+ public Result edit(@RequestBody AppSceneCostSapAfru appSceneCostSapAfru) {
+ appSceneCostSapAfruService.updateById(appSceneCostSapAfru);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_afru-通过id删除")
+ @ApiOperation(value="app_scene_cost_sap_afru-通过id删除", notes="app_scene_cost_sap_afru-通过id删除")
+ @RequiresPermissions("cost:app_scene_cost_sap_afru:delete")
+ @DeleteMapping(value = "/delete")
+ public Result delete(@RequestParam(name="id",required=true) String id) {
+ appSceneCostSapAfruService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_afru-批量删除")
+ @ApiOperation(value="app_scene_cost_sap_afru-批量删除", notes="app_scene_cost_sap_afru-批量删除")
+ @RequiresPermissions("cost:app_scene_cost_sap_afru:deleteBatch")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.appSceneCostSapAfruService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_sap_afru-通过id查询")
+ @ApiOperation(value="app_scene_cost_sap_afru-通过id查询", notes="app_scene_cost_sap_afru-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result queryById(@RequestParam(name="id",required=true) String id) {
+ AppSceneCostSapAfru appSceneCostSapAfru = appSceneCostSapAfruService.getById(id);
+ if(appSceneCostSapAfru==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(appSceneCostSapAfru);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param appSceneCostSapAfru
+ */
+ @RequiresPermissions("cost:app_scene_cost_sap_afru:exportXls")
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapAfru appSceneCostSapAfru) {
+ return super.exportXls(request, appSceneCostSapAfru, AppSceneCostSapAfru.class, "app_scene_cost_sap_afru");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequiresPermissions("cost:app_scene_cost_sap_afru:importExcel")
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, AppSceneCostSapAfru.class);
+ }
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapEkpoController.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapEkpoController.java
new file mode 100644
index 0000000..00f43e8
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapEkpoController.java
@@ -0,0 +1,178 @@
+package com.zzsmart.qomo.kn.cost.manage.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapEkpo;
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapEkpoService;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+ /**
+ * @Description: app_scene_cost_sap_ekpo
+ * @Author: jeecg-boot
+ * @Date: 2024-09-22
+ * @Version: V1.0
+ */
+@Api(tags="app_scene_cost_sap_ekpo")
+@RestController
+@RequestMapping("/com.zzsmart.qomo.kn.cost.manage/appSceneCostSapEkpo")
+@Slf4j
+public class AppSceneCostSapEkpoController extends JeecgController {
+ @Autowired
+ private IAppSceneCostSapEkpoService appSceneCostSapEkpoService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param appSceneCostSapEkpo
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_sap_ekpo-分页列表查询")
+ @ApiOperation(value="app_scene_cost_sap_ekpo-分页列表查询", notes="app_scene_cost_sap_ekpo-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(AppSceneCostSapEkpo appSceneCostSapEkpo,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapEkpo, req.getParameterMap());
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = appSceneCostSapEkpoService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param appSceneCostSapEkpo
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_ekpo-添加")
+ @ApiOperation(value="app_scene_cost_sap_ekpo-添加", notes="app_scene_cost_sap_ekpo-添加")
+ @RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:add")
+ @PostMapping(value = "/add")
+ public Result add(@RequestBody AppSceneCostSapEkpo appSceneCostSapEkpo) {
+ appSceneCostSapEkpoService.save(appSceneCostSapEkpo);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param appSceneCostSapEkpo
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_ekpo-编辑")
+ @ApiOperation(value="app_scene_cost_sap_ekpo-编辑", notes="app_scene_cost_sap_ekpo-编辑")
+ @RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:edit")
+ @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+ public Result edit(@RequestBody AppSceneCostSapEkpo appSceneCostSapEkpo) {
+ appSceneCostSapEkpoService.updateById(appSceneCostSapEkpo);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_ekpo-通过id删除")
+ @ApiOperation(value="app_scene_cost_sap_ekpo-通过id删除", notes="app_scene_cost_sap_ekpo-通过id删除")
+ @RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:delete")
+ @DeleteMapping(value = "/delete")
+ public Result delete(@RequestParam(name="id",required=true) String id) {
+ appSceneCostSapEkpoService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_ekpo-批量删除")
+ @ApiOperation(value="app_scene_cost_sap_ekpo-批量删除", notes="app_scene_cost_sap_ekpo-批量删除")
+ @RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:deleteBatch")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.appSceneCostSapEkpoService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_sap_ekpo-通过id查询")
+ @ApiOperation(value="app_scene_cost_sap_ekpo-通过id查询", notes="app_scene_cost_sap_ekpo-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result queryById(@RequestParam(name="id",required=true) String id) {
+ AppSceneCostSapEkpo appSceneCostSapEkpo = appSceneCostSapEkpoService.getById(id);
+ if(appSceneCostSapEkpo==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(appSceneCostSapEkpo);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param appSceneCostSapEkpo
+ */
+ @RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:exportXls")
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapEkpo appSceneCostSapEkpo) {
+ return super.exportXls(request, appSceneCostSapEkpo, AppSceneCostSapEkpo.class, "app_scene_cost_sap_ekpo");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_sap_ekpo:importExcel")
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, AppSceneCostSapEkpo.class);
+ }
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapHourRateController.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapHourRateController.java
new file mode 100644
index 0000000..b290538
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapHourRateController.java
@@ -0,0 +1,180 @@
+package com.zzsmart.qomo.kn.cost.manage.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapHourRate;
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapHourRateService;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+ /**
+ * @Description: app_scene_cost_sap_hour_rate
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+@Api(tags="app_scene_cost_sap_hour_rate")
+@RestController
+@RequestMapping("/cost/appSceneCostSapHourRate")
+@Slf4j
+public class AppSceneCostSapHourRateController extends JeecgController {
+ @Autowired
+ private IAppSceneCostSapHourRateService appSceneCostSapHourRateService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param appSceneCostSapHourRate
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_sap_hour_rate-分页列表查询")
+ @ApiOperation(value="app_scene_cost_sap_hour_rate-分页列表查询", notes="app_scene_cost_sap_hour_rate-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(AppSceneCostSapHourRate appSceneCostSapHourRate,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapHourRate, req.getParameterMap());
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = appSceneCostSapHourRateService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param appSceneCostSapHourRate
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_hour_rate-添加")
+ @ApiOperation(value="app_scene_cost_sap_hour_rate-添加", notes="app_scene_cost_sap_hour_rate-添加")
+ @RequiresPermissions("cost:app_scene_cost_sap_hour_rate:add")
+ @PostMapping(value = "/add")
+ public Result add(@RequestBody AppSceneCostSapHourRate appSceneCostSapHourRate) {
+ appSceneCostSapHourRateService.save(appSceneCostSapHourRate);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param appSceneCostSapHourRate
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_hour_rate-编辑")
+ @ApiOperation(value="app_scene_cost_sap_hour_rate-编辑", notes="app_scene_cost_sap_hour_rate-编辑")
+ @RequiresPermissions("cost:app_scene_cost_sap_hour_rate:edit")
+ @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+ public Result edit(@RequestBody AppSceneCostSapHourRate appSceneCostSapHourRate) {
+ appSceneCostSapHourRateService.updateById(appSceneCostSapHourRate);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_hour_rate-通过id删除")
+ @ApiOperation(value="app_scene_cost_sap_hour_rate-通过id删除", notes="app_scene_cost_sap_hour_rate-通过id删除")
+ @RequiresPermissions("cost:app_scene_cost_sap_hour_rate:delete")
+ @DeleteMapping(value = "/delete")
+ public Result delete(@RequestParam(name="id",required=true) String id) {
+ appSceneCostSapHourRateService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_hour_rate-批量删除")
+ @ApiOperation(value="app_scene_cost_sap_hour_rate-批量删除", notes="app_scene_cost_sap_hour_rate-批量删除")
+ @RequiresPermissions("cost:app_scene_cost_sap_hour_rate:deleteBatch")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.appSceneCostSapHourRateService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_sap_hour_rate-通过id查询")
+ @ApiOperation(value="app_scene_cost_sap_hour_rate-通过id查询", notes="app_scene_cost_sap_hour_rate-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result queryById(@RequestParam(name="id",required=true) String id) {
+ AppSceneCostSapHourRate appSceneCostSapHourRate = appSceneCostSapHourRateService.getById(id);
+ if(appSceneCostSapHourRate==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(appSceneCostSapHourRate);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param appSceneCostSapHourRate
+ */
+ @RequiresPermissions("cost:app_scene_cost_sap_hour_rate:exportXls")
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapHourRate appSceneCostSapHourRate) {
+ return super.exportXls(request, appSceneCostSapHourRate, AppSceneCostSapHourRate.class, "app_scene_cost_sap_hour_rate");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequiresPermissions("cost:app_scene_cost_sap_hour_rate:importExcel")
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, AppSceneCostSapHourRate.class);
+ }
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapZcorcController.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapZcorcController.java
new file mode 100644
index 0000000..4b9244f
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapZcorcController.java
@@ -0,0 +1,220 @@
+package com.zzsmart.qomo.kn.cost.manage.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
+import com.zzsmart.qomo.kn.cost.manage.plugin.CostEffectiveService;
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostActualService;
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapZcorcService;
+import com.zzsmart.qomo.kn.cost.manage.vo.CostEffectiveVO;
+import org.checkerframework.checker.units.qual.A;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+ /**
+ * @Description: app_scene_cost_sap_zcorc
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+@Api(tags="app_scene_cost_sap_zcorc")
+@RestController
+@RequestMapping("/cost/appSceneCostSapZcorc")
+@Slf4j
+public class AppSceneCostSapZcorcController extends JeecgController {
+ @Autowired
+ private IAppSceneCostSapZcorcService appSceneCostSapZcorcService;
+
+ @Autowired
+ private CostEffectiveService costEffectiveService;
+
+ @Autowired
+ private IAppSceneCostActualService iAppSceneCostActualService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param appSceneCostSapZcorc
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_sap_zcorc-分页列表查询")
+ @ApiOperation(value="app_scene_cost_sap_zcorc-分页列表查询", notes="app_scene_cost_sap_zcorc-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(AppSceneCostSapZcorc appSceneCostSapZcorc,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapZcorc, req.getParameterMap());
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = appSceneCostSapZcorcService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param appSceneCostSapZcorc
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_zcorc-添加")
+ @ApiOperation(value="app_scene_cost_sap_zcorc-添加", notes="app_scene_cost_sap_zcorc-添加")
+ //@RequiresPermissions("cost:app_scene_cost_sap_zcorc:add")
+ @PostMapping(value = "/add")
+ public Result add(@RequestBody CostEffectiveVO costEffectiveVO) {
+ //appSceneCostSapZcorcService.save(appSceneCostSapZcorc);
+ costEffectiveService.loadsapservice(costEffectiveVO.getWerks(),costEffectiveVO.getMatnr(),"",costEffectiveVO.getYmonth());
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 添加
+ *
+ * @param appSceneCostSapZcorc
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_zcorc-添加")
+ @ApiOperation(value="app_scene_cost_sap_zcorc-添加", notes="app_scene_cost_sap_zcorc-添加")
+ //@RequiresPermissions("cost:app_scene_cost_sap_zcorc:add")
+ @GetMapping(value = "/fix")
+ public Result fix(@RequestParam(name="version") String version) {
+ //appSceneCostSapZcorcService.save(appSceneCostSapZcorc);
+ costEffectiveService.fixversion(version);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param appSceneCostSapZcorc
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_zcorc-编辑")
+ @ApiOperation(value="app_scene_cost_sap_zcorc-编辑", notes="app_scene_cost_sap_zcorc-编辑")
+ @RequiresPermissions("cost:app_scene_cost_sap_zcorc:edit")
+ @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+ public Result edit(@RequestBody AppSceneCostSapZcorc appSceneCostSapZcorc) {
+ appSceneCostSapZcorcService.updateById(appSceneCostSapZcorc);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_zcorc-通过id删除")
+ @ApiOperation(value="app_scene_cost_sap_zcorc-通过id删除", notes="app_scene_cost_sap_zcorc-通过id删除")
+ @RequiresPermissions("cost:app_scene_cost_sap_zcorc:delete")
+ @DeleteMapping(value = "/delete")
+ public Result delete(@RequestParam(name="id",required=true) String id) {
+ appSceneCostSapZcorcService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_zcorc-批量删除")
+ @ApiOperation(value="app_scene_cost_sap_zcorc-批量删除", notes="app_scene_cost_sap_zcorc-批量删除")
+ @RequiresPermissions("cost:app_scene_cost_sap_zcorc:deleteBatch")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.appSceneCostSapZcorcService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_sap_zcorc-通过id查询")
+ @ApiOperation(value="app_scene_cost_sap_zcorc-通过id查询", notes="app_scene_cost_sap_zcorc-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result queryById(@RequestParam(name="id",required=true) String id) {
+ AppSceneCostSapZcorc appSceneCostSapZcorc = appSceneCostSapZcorcService.getById(id);
+ if(appSceneCostSapZcorc==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(appSceneCostSapZcorc);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param appSceneCostSapZcorc
+ */
+ //@RequiresPermissions("cost:app_scene_cost_sap_zcorc:exportXls")
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapZcorc appSceneCostSapZcorc) {
+ String exportFields="layer,rlayer,matnr,werks,aufnr,ebeln,ebelp,ppsmng,idnrk,kmonth,menge,unmng,kst001,kst003,kst005,kstsum";
+ return super.exportXls(request, appSceneCostSapZcorc, AppSceneCostSapZcorc.class, "实际成本",exportFields);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param appSceneCostSapZcorc
+ */
+ //@RequiresPermissions("cost:app_scene_cost_sap_zcorc:exportXls")
+ @RequestMapping(value = "/exportmatnrXls")
+ public ModelAndView exportmatnrXls(HttpServletRequest request, AppSceneCostSapZcorc appSceneCostSapZcorc) {
+ String exportFields="layer,rlayer,matnr,werks,aufnr,ebeln,ebelp,ppsmng,idnrk,kmonth,menge,unmng,kstsum,rkst000,aufnrmng,aufnrnum,pnum,avgnum,avgprice,totalprice,";
+ return super.exportXls(request, appSceneCostSapZcorc, AppSceneCostSapZcorc.class, "实际成本",exportFields);
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequiresPermissions("cost:app_scene_cost_sap_zcorc:importExcel")
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, AppSceneCostSapZcorc.class);
+ }
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapZtmmx004Controller.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapZtmmx004Controller.java
new file mode 100644
index 0000000..0db24ec
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostSapZtmmx004Controller.java
@@ -0,0 +1,179 @@
+package com.zzsmart.qomo.kn.cost.manage.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZtmmx004;
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostSapZtmmx004Service;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+ /**
+ * @Description: app_scene_cost_sap_ztmmx004
+ * @Author: jeecg-boot
+ * @Date: 2024-10-17
+ * @Version: V1.0
+ */
+@Api(tags="app_scene_cost_sap_ztmmx004")
+@RestController
+@RequestMapping("/cost/appSceneCostSapZtmmx004")
+@Slf4j
+public class AppSceneCostSapZtmmx004Controller extends JeecgController {
+ @Autowired
+ private IAppSceneCostSapZtmmx004Service appSceneCostSapZtmmx004Service;
+
+ /**
+ * 分页列表查询
+ *
+ * @param appSceneCostSapZtmmx004
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_sap_ztmmx004-分页列表查询")
+ @ApiOperation(value="app_scene_cost_sap_ztmmx004-分页列表查询", notes="app_scene_cost_sap_ztmmx004-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapZtmmx004, req.getParameterMap());
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = appSceneCostSapZtmmx004Service.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param appSceneCostSapZtmmx004
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_ztmmx004-添加")
+ @ApiOperation(value="app_scene_cost_sap_ztmmx004-添加", notes="app_scene_cost_sap_ztmmx004-添加")
+ @RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:add")
+ @PostMapping(value = "/add")
+ public Result add(@RequestBody AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004) {
+ appSceneCostSapZtmmx004Service.save(appSceneCostSapZtmmx004);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param appSceneCostSapZtmmx004
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_ztmmx004-编辑")
+ @ApiOperation(value="app_scene_cost_sap_ztmmx004-编辑", notes="app_scene_cost_sap_ztmmx004-编辑")
+ @RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:edit")
+ @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+ public Result edit(@RequestBody AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004) {
+ appSceneCostSapZtmmx004Service.updateById(appSceneCostSapZtmmx004);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_ztmmx004-通过id删除")
+ @ApiOperation(value="app_scene_cost_sap_ztmmx004-通过id删除", notes="app_scene_cost_sap_ztmmx004-通过id删除")
+ @RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:delete")
+ @DeleteMapping(value = "/delete")
+ public Result delete(@RequestParam(name="id",required=true) String id) {
+ appSceneCostSapZtmmx004Service.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_sap_ztmmx004-批量删除")
+ @ApiOperation(value="app_scene_cost_sap_ztmmx004-批量删除", notes="app_scene_cost_sap_ztmmx004-批量删除")
+ @RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:deleteBatch")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.appSceneCostSapZtmmx004Service.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_sap_ztmmx004-通过id查询")
+ @ApiOperation(value="app_scene_cost_sap_ztmmx004-通过id查询", notes="app_scene_cost_sap_ztmmx004-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result queryById(@RequestParam(name="id",required=true) String id) {
+ AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004 = appSceneCostSapZtmmx004Service.getById(id);
+ if(appSceneCostSapZtmmx004==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(appSceneCostSapZtmmx004);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param appSceneCostSapZtmmx004
+ */
+ @RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:exportXls")
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004) {
+ return super.exportXls(request, appSceneCostSapZtmmx004, AppSceneCostSapZtmmx004.class, "app_scene_cost_sap_ztmmx004");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequiresPermissions("cost:app_scene_cost_sap_ztmmx004:importExcel")
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, AppSceneCostSapZtmmx004.class);
+ }
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardBomController.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardBomController.java
new file mode 100644
index 0000000..356f4bf
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardBomController.java
@@ -0,0 +1,179 @@
+package com.zzsmart.qomo.kn.cost.manage.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardBom;
+import com.zzsmart.qomo.kn.cost.manage.service.IAppSceneCostStandardBomService;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+
+ /**
+ * @Description: app_scene_cost_standard_bom
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+@Api(tags="app_scene_cost_standard_bom")
+@RestController
+@RequestMapping("/cost/appSceneCostStandardBom")
+@Slf4j
+public class AppSceneCostStandardBomController extends JeecgController {
+ @Autowired
+ private IAppSceneCostStandardBomService appSceneCostStandardBomService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param appSceneCostStandardBom
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_standard_bom-分页列表查询")
+ @ApiOperation(value="app_scene_cost_standard_bom-分页列表查询", notes="app_scene_cost_standard_bom-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(AppSceneCostStandardBom appSceneCostStandardBom,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostStandardBom, req.getParameterMap());
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = appSceneCostStandardBomService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param appSceneCostStandardBom
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_standard_bom-添加")
+ @ApiOperation(value="app_scene_cost_standard_bom-添加", notes="app_scene_cost_standard_bom-添加")
+ @RequiresPermissions("cost:app_scene_cost_standard_bom:add")
+ @PostMapping(value = "/add")
+ public Result add(@RequestBody AppSceneCostStandardBom appSceneCostStandardBom) {
+ appSceneCostStandardBomService.save(appSceneCostStandardBom);
+ return Result.OK("添加成功!");
+ }
+
+ /**
+ * 编辑
+ *
+ * @param appSceneCostStandardBom
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_standard_bom-编辑")
+ @ApiOperation(value="app_scene_cost_standard_bom-编辑", notes="app_scene_cost_standard_bom-编辑")
+ @RequiresPermissions("cost:app_scene_cost_standard_bom:edit")
+ @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+ public Result edit(@RequestBody AppSceneCostStandardBom appSceneCostStandardBom) {
+ appSceneCostStandardBomService.updateById(appSceneCostStandardBom);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_standard_bom-通过id删除")
+ @ApiOperation(value="app_scene_cost_standard_bom-通过id删除", notes="app_scene_cost_standard_bom-通过id删除")
+ @RequiresPermissions("cost:app_scene_cost_standard_bom:delete")
+ @DeleteMapping(value = "/delete")
+ public Result delete(@RequestParam(name="id",required=true) String id) {
+ appSceneCostStandardBomService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "app_scene_cost_standard_bom-批量删除")
+ @ApiOperation(value="app_scene_cost_standard_bom-批量删除", notes="app_scene_cost_standard_bom-批量删除")
+ @RequiresPermissions("cost:app_scene_cost_standard_bom:deleteBatch")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.appSceneCostStandardBomService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ //@AutoLog(value = "app_scene_cost_standard_bom-通过id查询")
+ @ApiOperation(value="app_scene_cost_standard_bom-通过id查询", notes="app_scene_cost_standard_bom-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result queryById(@RequestParam(name="id",required=true) String id) {
+ AppSceneCostStandardBom appSceneCostStandardBom = appSceneCostStandardBomService.getById(id);
+ if(appSceneCostStandardBom==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(appSceneCostStandardBom);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param appSceneCostStandardBom
+ */
+ @RequiresPermissions("cost:app_scene_cost_standard_bom:exportXls")
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, AppSceneCostStandardBom appSceneCostStandardBom) {
+ return super.exportXls(request, appSceneCostStandardBom, AppSceneCostStandardBom.class, "app_scene_cost_standard_bom");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequiresPermissions("cost:app_scene_cost_standard_bom:importExcel")
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, AppSceneCostStandardBom.class);
+ }
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardResultController.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardResultController.java
index 3caab25..4dfc6ea 100644
--- a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardResultController.java
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/controller/AppSceneCostStandardResultController.java
@@ -56,7 +56,7 @@ public class AppSceneCostStandardResultController extends JeecgController queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostStandardResult, req.getParameterMap());
- queryWrapper.orderByAsc("layer");
+ queryWrapper.orderByAsc("id");
Page page = new Page(pageNo, pageSize);
IPage pageList = appSceneCostStandardResultService.page(page, queryWrapper);
// IPage newpageList = new Page<>();
@@ -182,8 +182,8 @@ public class AppSceneCostStandardResultController extends JeecgController {
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostAufnrMatnrMapper.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostAufnrMatnrMapper.java
new file mode 100644
index 0000000..36592ab
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostAufnrMatnrMapper.java
@@ -0,0 +1,17 @@
+package com.zzsmart.qomo.kn.cost.manage.mapper;
+
+import java.util.List;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostAufnrMatnr;
+import org.apache.ibatis.annotations.Param;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: app_scene_cost_aufnr_matnr
+ * @Author: jeecg-boot
+ * @Date: 2024-10-05
+ * @Version: V1.0
+ */
+public interface AppSceneCostAufnrMatnrMapper extends BaseMapper {
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostBomRelevancyMapper.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostBomRelevancyMapper.java
index d8e0676..81556a4 100644
--- a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostBomRelevancyMapper.java
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostBomRelevancyMapper.java
@@ -17,16 +17,16 @@ import java.util.List;
*/
public interface AppSceneCostBomRelevancyMapper extends BaseMapper {
@Select("WITH RECURSIVE BOM_Tree AS (\n" +
- " SELECT matnr, idnrk, menge/bmeng as menge,1.000000 as pmenge,1.000000 as topmenge, 1 AS depth\n" +
+ " SELECT werks,matnr, idnrk, menge/bmeng as menge,1.000000 as pmenge,menge/bmeng as topmenge, 1 AS depth,cast( ROW_NUMBER() OVER (partition by matnr ORDER BY posnr ) AS CHAR ) AS layer,'00000000000000000000' as player \n" +
" FROM app_scene_cost_bom_relevancy\n" +
- " WHERE matnr = #{parentId}\n" +
+ " WHERE matnr = #{parentId} and werks= #{werk}\n" +
" UNION ALL\n" +
- " SELECT b.matnr, b.idnrk, b.menge/b.bmeng as menge, BOM_Tree.menge as pmenge,BOM_Tree.menge*(b.menge/b.bmeng) AS topmenge,BOM_Tree.depth + 1\n" +
- " FROM app_scene_cost_bom_relevancy b\n" +
- " JOIN BOM_Tree ON b.matnr = BOM_Tree.idnrk\n" +
+ " SELECT b.werks,b.matnr, b.idnrk, b.menge/b.bmeng as menge, BOM_Tree.menge as pmenge,BOM_Tree.topmenge*(b.menge/b.bmeng) AS topmenge,BOM_Tree.depth + 1 as depth,concat( BOM_Tree.layer, '.', b.layer ) AS layer,BOM_Tree.layer as player \n" +
+ " FROM ( SELECT werks,matnr, idnrk, menge, bmeng, cast( ROW_NUMBER() OVER (partition by matnr,werks ORDER BY posnr ) AS CHAR ) AS layer FROM app_scene_cost_bom_relevancy ) b\n" +
+ " JOIN BOM_Tree ON b.matnr = BOM_Tree.idnrk and b.werks=BOM_Tree.werks \n" +
")\n" +
- "SELECT matnr, idnrk, menge,pmenge,topmenge, depth FROM BOM_Tree")
- List findChildrenByParentId(String parentId);
+ "SELECT werks,matnr, idnrk, menge,pmenge,topmenge, depth,layer,player FROM BOM_Tree")
+ List findChildrenByParentId(String parentId,String werk);
@Select("${selectSql}")
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostInvoiceMapper.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostInvoiceMapper.java
new file mode 100644
index 0000000..135b68c
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostInvoiceMapper.java
@@ -0,0 +1,17 @@
+package com.zzsmart.qomo.kn.cost.manage.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostInvoice;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: app_scene_cost_invoice
+ * @Author: jeecg-boot
+ * @Date: 2024-09-22
+ * @Version: V1.0
+ */
+public interface AppSceneCostInvoiceMapper extends BaseMapper {
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningAufnrMapper.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningAufnrMapper.java
new file mode 100644
index 0000000..6f7fd1c
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningAufnrMapper.java
@@ -0,0 +1,18 @@
+package com.zzsmart.qomo.kn.cost.manage.mapper;
+
+import java.util.List;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningAufnr;
+import org.apache.ibatis.annotations.Param;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: app_scene_cost_mining_aufnr
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+public interface AppSceneCostMiningAufnrMapper extends BaseMapper {
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningDiffMapper.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningDiffMapper.java
new file mode 100644
index 0000000..82e71dd
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningDiffMapper.java
@@ -0,0 +1,17 @@
+package com.zzsmart.qomo.kn.cost.manage.mapper;
+
+import java.util.List;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningDiff;
+import org.apache.ibatis.annotations.Param;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: app_scene_cost_mining_diff
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+public interface AppSceneCostMiningDiffMapper extends BaseMapper {
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningLaborMapper.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningLaborMapper.java
new file mode 100644
index 0000000..1d7b21f
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningLaborMapper.java
@@ -0,0 +1,17 @@
+package com.zzsmart.qomo.kn.cost.manage.mapper;
+
+import java.util.List;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningLabor;
+import org.apache.ibatis.annotations.Param;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: app_scene_cost_mining_labor
+ * @Author: jeecg-boot
+ * @Date: 2024-11-05
+ * @Version: V1.0
+ */
+public interface AppSceneCostMiningLaborMapper extends BaseMapper {
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningMaterialMapper.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningMaterialMapper.java
new file mode 100644
index 0000000..5e61c86
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningMaterialMapper.java
@@ -0,0 +1,17 @@
+package com.zzsmart.qomo.kn.cost.manage.mapper;
+
+import java.util.List;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningMaterial;
+import org.apache.ibatis.annotations.Param;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: app_scene_cost_mining_material
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+public interface AppSceneCostMiningMaterialMapper extends BaseMapper {
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningReasonMapper.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningReasonMapper.java
new file mode 100644
index 0000000..14cc697
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningReasonMapper.java
@@ -0,0 +1,17 @@
+package com.zzsmart.qomo.kn.cost.manage.mapper;
+
+import java.util.List;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningReason;
+import org.apache.ibatis.annotations.Param;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: app_scene_cost_mining_reason
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+public interface AppSceneCostMiningReasonMapper extends BaseMapper {
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningResultMapper.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningResultMapper.java
new file mode 100644
index 0000000..8b64664
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostMiningResultMapper.java
@@ -0,0 +1,17 @@
+package com.zzsmart.qomo.kn.cost.manage.mapper;
+
+import java.util.List;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningResult;
+import org.apache.ibatis.annotations.Param;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: app_scene_cost_mining_result
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+public interface AppSceneCostMiningResultMapper extends BaseMapper {
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapAfruMapper.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapAfruMapper.java
new file mode 100644
index 0000000..823276b
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapAfruMapper.java
@@ -0,0 +1,18 @@
+package com.zzsmart.qomo.kn.cost.manage.mapper;
+
+import java.util.List;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapAfru;
+import org.apache.ibatis.annotations.Param;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: app_scene_cost_sap_afru
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+public interface AppSceneCostSapAfruMapper extends BaseMapper {
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapEineMapper.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapEineMapper.java
new file mode 100644
index 0000000..f987d85
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapEineMapper.java
@@ -0,0 +1,18 @@
+package com.zzsmart.qomo.kn.cost.manage.mapper;
+
+import java.util.List;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapEine;
+import org.apache.ibatis.annotations.Param;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: app_scene_cost_sap_eine
+ * @Author: jeecg-boot
+ * @Date: 2024-09-21
+ * @Version: V1.0
+ */
+public interface AppSceneCostSapEineMapper extends BaseMapper {
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapEkpoMapper.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapEkpoMapper.java
new file mode 100644
index 0000000..7cc0927
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapEkpoMapper.java
@@ -0,0 +1,17 @@
+package com.zzsmart.qomo.kn.cost.manage.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapEkpo;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: app_scene_cost_sap_ekpo
+ * @Author: jeecg-boot
+ * @Date: 2024-09-22
+ * @Version: V1.0
+ */
+public interface AppSceneCostSapEkpoMapper extends BaseMapper {
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapHourRateMapper.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapHourRateMapper.java
new file mode 100644
index 0000000..f6416ef
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapHourRateMapper.java
@@ -0,0 +1,17 @@
+package com.zzsmart.qomo.kn.cost.manage.mapper;
+
+import java.util.List;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapHourRate;
+import org.apache.ibatis.annotations.Param;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: app_scene_cost_sap_hour_rate
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+public interface AppSceneCostSapHourRateMapper extends BaseMapper {
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapZcorcMapper.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapZcorcMapper.java
new file mode 100644
index 0000000..577a782
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapZcorcMapper.java
@@ -0,0 +1,17 @@
+package com.zzsmart.qomo.kn.cost.manage.mapper;
+
+import java.util.List;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
+import org.apache.ibatis.annotations.Param;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: app_scene_cost_sap_zcorc
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+public interface AppSceneCostSapZcorcMapper extends BaseMapper {
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapZtmmx004Mapper.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapZtmmx004Mapper.java
new file mode 100644
index 0000000..e0f7649
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostSapZtmmx004Mapper.java
@@ -0,0 +1,17 @@
+package com.zzsmart.qomo.kn.cost.manage.mapper;
+
+import java.util.List;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZtmmx004;
+import org.apache.ibatis.annotations.Param;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: app_scene_cost_sap_ztmmx004
+ * @Author: jeecg-boot
+ * @Date: 2024-10-17
+ * @Version: V1.0
+ */
+public interface AppSceneCostSapZtmmx004Mapper extends BaseMapper {
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostStandardBomMapper.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostStandardBomMapper.java
new file mode 100644
index 0000000..d71dec3
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostStandardBomMapper.java
@@ -0,0 +1,18 @@
+package com.zzsmart.qomo.kn.cost.manage.mapper;
+
+import java.util.List;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardBom;
+import org.apache.ibatis.annotations.Param;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: app_scene_cost_standard_bom
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+public interface AppSceneCostStandardBomMapper extends BaseMapper {
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostStandardProductprocessMapper.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostStandardProductprocessMapper.java
new file mode 100644
index 0000000..9008946
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/AppSceneCostStandardProductprocessMapper.java
@@ -0,0 +1,17 @@
+package com.zzsmart.qomo.kn.cost.manage.mapper;
+
+import java.util.List;
+
+import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardProductprocess;
+import org.apache.ibatis.annotations.Param;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: app_scene_cost_standard_productprocess
+ * @Author: jeecg-boot
+ * @Date: 2024-10-15
+ * @Version: V1.0
+ */
+public interface AppSceneCostStandardProductprocessMapper extends BaseMapper {
+
+}
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostActualMapper.xml b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostActualMapper.xml
new file mode 100644
index 0000000..91399d4
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostActualMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostAufnrMatnrMapper.xml b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostAufnrMatnrMapper.xml
new file mode 100644
index 0000000..ce7bd5e
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostAufnrMatnrMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostInvoiceMapper.xml b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostInvoiceMapper.xml
new file mode 100644
index 0000000..de15d93
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostInvoiceMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningAufnrMapper.xml b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningAufnrMapper.xml
new file mode 100644
index 0000000..c9e9ff6
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningAufnrMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningDiffMapper.xml b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningDiffMapper.xml
new file mode 100644
index 0000000..a70b681
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningDiffMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningLaborMapper.xml b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningLaborMapper.xml
new file mode 100644
index 0000000..eb2d37d
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningLaborMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningMaterialMapper.xml b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningMaterialMapper.xml
new file mode 100644
index 0000000..048bfc3
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningMaterialMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningReasonMapper.xml b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningReasonMapper.xml
new file mode 100644
index 0000000..d0879f3
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningReasonMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningResultMapper.xml b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningResultMapper.xml
new file mode 100644
index 0000000..d69da3f
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostMiningResultMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapAfruMapper.xml b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapAfruMapper.xml
new file mode 100644
index 0000000..9e34079
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapAfruMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapEineMapper.xml b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapEineMapper.xml
new file mode 100644
index 0000000..121a964
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapEineMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapEkpoMapper.xml b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapEkpoMapper.xml
new file mode 100644
index 0000000..aa6dc94
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapEkpoMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapHourRateMapper.xml b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapHourRateMapper.xml
new file mode 100644
index 0000000..2e3c0d7
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapHourRateMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapZcorcMapper.xml b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapZcorcMapper.xml
new file mode 100644
index 0000000..5810f1e
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapZcorcMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapZtmmx004Mapper.xml b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapZtmmx004Mapper.xml
new file mode 100644
index 0000000..18c634e
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostSapZtmmx004Mapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostStandardBomMapper.xml b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostStandardBomMapper.xml
new file mode 100644
index 0000000..a075258
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostStandardBomMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostStandardProductprocessMapper.xml b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostStandardProductprocessMapper.xml
new file mode 100644
index 0000000..414c032
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/mapper/xml/AppSceneCostStandardProductprocessMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/CostEffectiveService.java b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/CostEffectiveService.java
new file mode 100644
index 0000000..3acab50
--- /dev/null
+++ b/qomo-kn-cost-manage/src/main/java/com/zzsmart/qomo/kn/cost/manage/plugin/CostEffectiveService.java
@@ -0,0 +1,3380 @@
+package com.zzsmart.qomo.kn.cost.manage.plugin;
+
+import cn.hutool.core.date.DateTime;
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.google.gson.Gson;
+import com.zzsmart.qomo.kn.cost.manage.entity.*;
+import com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostSapZcorcMapper;
+import com.zzsmart.qomo.kn.cost.manage.plugin.webservice.SAPOrderServiceImpl;
+import com.zzsmart.qomo.kn.cost.manage.service.*;
+import com.zzsmart.qomo.kn.cost.manage.vo.*;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.collections.map.HashedMap;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.BeanUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.core.env.Environment;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.lang.reflect.Field;
+import java.math.BigDecimal;
+import java.text.DecimalFormat;
+import java.text.SimpleDateFormat;
+import java.util.*;
+
+@Service
+@Slf4j
+@Transactional
+public class CostEffectiveService {
+
+ private static final Logger logger = LoggerFactory.getLogger(CostEffectiveService.class);
+
+ @Autowired
+ private Environment env;
+
+ @Autowired
+ private IAppSceneCostSapZcorcService iAppSceneCostSapZcorcService;
+
+ @Autowired
+ private IAppSceneCostMaterialService iAppSceneCostMaterialService;
+
+ @Autowired
+ private IAppSceneCostSapHourRateService iAppSceneCostSapHourRateService;
+
+ @Autowired
+ private IAppSceneCostSapAfruService iAppSceneCostSapAfruService;
+
+ @Autowired
+ private IAppSceneCostStandardResultService iAppSceneCostStandardResultService;
+
+ @Autowired
+ private IAppSceneCostHourRateService iAppSceneCostHourRateService;
+
+ @Autowired
+ private IAppSceneCostBomRelevancyService iAppSceneCostBomRelevancyService;
+
+ @Autowired
+ private IAppSceneCostStandardProductprocessService iAppSceneCostStandardProductprocessService;
+
+ @Autowired
+ private IAppSceneCostStandardBomService iAppSceneCostStandardBomService;
+
+ @Autowired
+ private IAppSceneCostMiningDiffService iAppSceneCostMiningDiffService;
+ @Autowired
+ private IAppSceneCostMiningResultService iAppSceneCostMiningResultService;
+ @Autowired
+ private IAppSceneCostMiningAufnrService iAppSceneCostMiningAufnrService;
+ @Autowired
+ private IAppSceneCostMiningMaterialService iAppSceneCostMiningMaterialService;
+ @Autowired
+ private IAppSceneCostMiningReasonService iAppSceneCostMiningReasonService;
+ @Autowired
+ private IAppSceneCostSapZtmmx004Service iAppSceneCostSapZtmmx004Service;
+
+
+ public Map> rlayerMatnrMap = new HashMap<>();
+ public Map> layerAufnrMap = new HashMap<>();
+ public Map> tempSapZcorcList = new HashedMap();
+ //public Map auartMap = new HashedMap();
+ public Map> afruMap = new HashedMap();//报工单
+ //public Map> priceMap = new HashedMap();
+ public Map materialMap = new HashedMap();
+
+ public Map zcorcAufnrMap = new HashMap<>();
+ public Map zcorcMatnrMap = new HashMap<>();
+
+ public Map versionTmpMap = new HashMap<>();
+
+ public Map miningReasonMap = new HashedMap();
+
+ public Map> mapZtmmx004 = new HashMap<>();
+
+ //public Map costCenterMap = new HashMap<>();
+ //参考层级
+ //public Set rlayers = new HashSet<>();
+ public TreeSet rlayers = new TreeSet<>(new Comparator() {
+ @Override
+ public int compare(String o1, String o2) {
+ if (o1.equals(o2)) {
+ return 0;
+ } else if (o1.length() < o2.length()) {
+ return 1;
+ } else {
+ return -1;
+ }
+ //return o1 tempUniCost = new HashMap<>();
+
+ public JSONObject ConvertTolowercase(JSONObject obj) {
+ JSONObject result = new JSONObject();
+ for (Map.Entry entry : obj.entrySet()) {
+ // System.out.println(entry.getKey() + ":" + entry.getValue());
+ String newkey = entry.getKey().toLowerCase();
+ if (newkey.equals("pspsppnr")) {
+ newkey = "psPspPnr";
+ }
+ result.put(newkey, entry.getValue());
+ }
+ return result;
+ }
+
+ public double ConvertStringtoDouble(String value) {
+ boolean neg = false;
+ if (value.indexOf("-") != -1) {
+ neg = true;
+ }
+ String item = value.replace("-", "");
+ if (neg) {
+ return 0 - Double.parseDouble(item);
+ } else {
+ return Double.parseDouble(item);
+ }
+ }
+
+ public String getNextMonth(String ymonth) {
+ String result = ymonth;
+ if (result.length() == 6) {
+ int year = Integer.parseInt(result.substring(0, 4));
+ int month = Integer.parseInt(result.substring(4, 6));
+ if (month == 12) {
+ month = 1;
+ year += 1;
+ } else {
+ month += 1;
+ }
+ result = String.valueOf(year);
+ if (month < 10) {
+ result += "0" + month;
+ } else {
+ result += month;
+ }
+ }
+ return result;
+ }
+
+ public String getLastMonth(String ymonth) {
+ String result = ymonth;
+ if (result.length() == 6) {
+ int year = Integer.parseInt(result.substring(0, 4));
+ int month = Integer.parseInt(result.substring(4, 6));
+ if (month > 6) {
+ month = month - 6;
+ //year += 1;
+ } else {
+ month = month + 6;
+ year = year - 1;
+ }
+ result = String.valueOf(year);
+ if (month < 10) {
+ result += "0" + month;
+ } else {
+ result += month;
+ }
+ }
+ return result;
+ }
+
+ public void LoadMiningReason() {
+ List reasons=iAppSceneCostMiningReasonService.list();
+ for (AppSceneCostMiningReason reason:reasons){
+ miningReasonMap.put(reason.getCode(), reason);
+ }
+ }
+
+ public void fixversion(String version){
+ QueryWrapper queryWrapper=new QueryWrapper<>();
+ queryWrapper.eq("version",version);
+ List zcorcs=iAppSceneCostSapZcorcService.list(queryWrapper);
+ if(zcorcs.size()>0) {
+ AppSceneCostSapZcorc zcorc=zcorcs.get(0);
+ FillNums(zcorcs,zcorc.getYmonth());
+ }
+ int index=0;
+ for (AppSceneCostSapZcorc zcorc:zcorcs){
+ logger.info(index+"/"+zcorcs.size());
+ iAppSceneCostSapZcorcService.updateById(zcorc);
+ index++;
+ }
+ //iAppSceneCostSapZcorcService.updateBatchById(zcorcs);
+ }
+
+ Map mapAufnr=new HashMap<>();
+ public void FillAufnrs(List zcorcs,String ymonth){
+
+ QueryWrapper queryWrapper1=new QueryWrapper<>();
+ //queryWrapper1.eq("ym",ymonth);
+ queryWrapper1.like("center_code","7100%");
+ List appSceneCostSapHourRates = iAppSceneCostSapHourRateService.list(queryWrapper1);
+ Map mapHour = new HashMap<>();
+ for (AppSceneCostSapHourRate hourRate:appSceneCostSapHourRates){
+ String key = hourRate.getCenterCode()+"-"+hourRate.getYm();
+ mapHour.put(key,hourRate);
+ }
+
+ for (AppSceneCostSapHourRate row : appSceneCostSapHourRates) {
+ UnitCost unitCost = new UnitCost();
+ double minute = 60;
+ unitCost.rgfv = row.getRgfv().doubleValue() / minute;
+ unitCost.sbfv = row.getSbfv().doubleValue() / minute;
+ unitCost.rdfv = row.getRdfv().doubleValue() / minute;
+ unitCost.flfv = row.getFlfv().doubleValue() / minute;
+ unitCost.qtfv = row.getQtfv().doubleValue() / minute;
+
+ String code = row.getCenterCode();
+ String month = row.getYm();
+ tempUniCost.put(code + "." + month, unitCost);
+ }
+
+ int index=0;
+ for (AppSceneCostSapZcorc zcorc:zcorcs){
+ logger.info("aufnr "+index+"/"+zcorcs.size());
+ index++;
+ if(zcorc.getMatnr().equals(zcorc.getIdnrk())){
+ if(!mapAufnr.containsKey(zcorc.getAufnr())){
+ QueryWrapper queryWrapper=new QueryWrapper<>();
+ queryWrapper.eq("aufnr",zcorc.getAufnr());
+ List list=iAppSceneCostSapAfruService.list(queryWrapper);
+ double rggs=0;
+ double flgs=0;
+ double rdgs=0;
+ double sbgs=0;
+ double qtgs=0;
+ double rgcost = 0;
+ double flcost = 0;
+ double rdcost = 0;
+ double sbcost = 0;
+ double qtcost = 0;
+ for (AppSceneCostSapAfru afru:list){
+ rggs+=afru.getIsm03().doubleValue();
+ sbgs+=afru.getIsm02().doubleValue();
+ flgs+=afru.getIsm05().doubleValue();
+ rdgs+=afru.getIsm04().doubleValue();
+ qtgs+=afru.getIsm06().doubleValue();
+ String ym = afru.getYm();
+ String key = afru.getKostl()+"-"+ym;
+ if(mapHour.containsKey(key)){
+ AppSceneCostSapHourRate hourRate=mapHour.get(key);
+ rgcost+=hourRate.getRgfv().doubleValue()*afru.getIsm03().doubleValue();
+ flcost+=hourRate.getFlfv().doubleValue()*afru.getIsm05().doubleValue();
+ rdcost+=hourRate.getRdfv().doubleValue()*afru.getIsm04().doubleValue();
+ sbcost+=hourRate.getSbfv().doubleValue()*afru.getIsm02().doubleValue();
+ qtcost+=hourRate.getQtfv().doubleValue()*afru.getIsm06().doubleValue();
+ }
+ }
+ zcorc.setRggs(new BigDecimal(rggs));
+ zcorc.setRgfv(new BigDecimal(rggs!=0?rgcost/rggs:0));
+ zcorc.setSbgs(new BigDecimal(sbgs));
+ zcorc.setSbfv(new BigDecimal(sbgs!=0?sbcost/sbgs:0));
+ zcorc.setFlgs(new BigDecimal(flgs));
+ zcorc.setFlfv(new BigDecimal(flgs!=0?flcost/flgs:0));
+ zcorc.setRdgs(new BigDecimal(rdgs));
+ zcorc.setRdfv(new BigDecimal(rdgs!=0?rdcost/rdgs:0));
+ zcorc.setQtgs(new BigDecimal(qtgs));
+ zcorc.setQtfv(new BigDecimal(qtgs!=0?qtcost/qtgs:0));
+ mapAufnr.put(zcorc.getAufnr(),zcorc);
+ }else{
+ AppSceneCostSapZcorc zcorc1=mapAufnr.get(zcorc.getAufnr());
+ zcorc.setRggs(zcorc1.getRggs());
+ zcorc.setRgfv(zcorc1.getRgfv());
+ zcorc.setSbgs(zcorc1.getSbgs());
+ zcorc.setSbfv(zcorc1.getSbfv());
+ zcorc.setFlgs(zcorc1.getFlgs());
+ zcorc.setFlfv(zcorc1.getFlfv());
+ zcorc.setRdgs(zcorc1.getRdgs());
+ zcorc.setRdfv(zcorc1.getRgfv());
+ zcorc.setQtgs(zcorc1.getQtgs());
+ zcorc.setQtfv(zcorc1.getQtfv());
+ }
+ }
+ }
+ }
+
+ public void FillNums3(List zcorcs,String ymonth){
+ FillAufnrs(zcorcs,ymonth);
+ if(zcorcs.size()>0){
+ logger.info("fillnums "+zcorcs.get(0).getAufnr());
+ if(zcorcs.get(0).getAufnr()==null){
+ return;
+ }
+ }
+ String topmantr = "";
+ //填充level
+ for (AppSceneCostSapZcorc zcorc:zcorcs){
+ String[] values = zcorc.getLayer().split("-");
+ int level = (values.length-1)/2;
+ zcorc.setLevel(level);
+ if(zcorc.getPlayer().equals("0")){
+ zcorc.setPnum(new BigDecimal(1));
+ zcorc.setLevel(0);
+ zcorc.setMatnrnum(new BigDecimal(1));
+ zcorc.setAufnrnum(new BigDecimal(1));
+ topmantr = zcorc.getMatnr();
+ }
+ }
+ //1.第一步,填充aufnrtotal
+ //kmonth 等于 0 的是订单,将player相等的归为一组
+// Map> mapZcorc = new HashMap<>();
+// for (AppSceneCostSapZcorc appSceneCostSapZcorc:zcorcs){
+// //String kmonth = appSceneCostSapZcorc.getKmonth();
+// if(appSceneCostSapZcorc.getPlayer().equals("0")){
+// continue;
+// }
+// if(!appSceneCostSapZcorc.getKmonth().equals("000000")){
+// continue;
+// }
+// String player = appSceneCostSapZcorc.getPlayer();
+// //String player = appSceneCostSapZcorc.getMatnr();
+// if(mapZcorc.containsKey(player)){
+// List items = mapZcorc.get(player);
+// items.add(appSceneCostSapZcorc);
+// mapZcorc.put(player,items);
+// }else{
+// List items = new ArrayList<>();
+// items.add(appSceneCostSapZcorc);
+// mapZcorc.put(player,items);
+// }
+// }
+// Map mapNum = new HashedMap();
+// for (String player:mapZcorc.keySet()){
+// double totalmenge = 0;
+// List items = mapZcorc.get(player);
+// for (AppSceneCostSapZcorc zcorc:items){
+// totalmenge+=zcorc.getMenge().doubleValue();
+// }
+// mapNum.put(player,new BigDecimal(totalmenge));
+// }
+// for (AppSceneCostSapZcorc zcorc:zcorcs){
+// if(mapNum.containsKey(zcorc.getPlayer())){
+// zcorc.setAufnrtotal(mapNum.get(zcorc.getPlayer()));
+// }
+// }
+// //临时保存的记录,用于计算nums
+ Map numZcorc = new HashMap<>();
+ for (AppSceneCostSapZcorc zcorc:zcorcs){
+ numZcorc.put(zcorc.getLayer(),zcorc);
+ }
+ //根据组件对结果进行分组
+ Map> pairMap = new HashMap<>();
+ for (AppSceneCostSapZcorc zcorc:zcorcs){
+ String pair = zcorc.getIdnrk();
+ if(zcorc.getMatnr().equals(zcorc.getIdnrk())){
+ continue;
+ }
+ if(pairMap.containsKey(pair)){
+ List items = pairMap.get(pair);
+ items.add(zcorc);
+ pairMap.put(pair,items);
+ }else{
+ List items = new ArrayList<>();
+ items.add(zcorc);
+ pairMap.put(pair,items);
+ }
+ }
+ //构建物料号,avgnum的结构
+ Map