Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
58985badb2 |
@@ -33,8 +33,6 @@
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-kn-cost-manage</artifactId>
|
||||
|
||||
@@ -235,17 +235,10 @@ spring:
|
||||
# allow-circular-references: true
|
||||
redis:
|
||||
database: 10
|
||||
host: 158.158.4.48
|
||||
host: localhost
|
||||
port: 6379
|
||||
password: 'zzboard'
|
||||
main:
|
||||
allow-circular-references: true
|
||||
# redis:
|
||||
# database: 10
|
||||
# host: localhost
|
||||
# port: 6379
|
||||
# main:
|
||||
# allow-circular-references: true
|
||||
|
||||
#rabbitmq 配置
|
||||
rabbitmq:
|
||||
@@ -467,9 +460,3 @@ minio:
|
||||
|
||||
condaEnv: py310
|
||||
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
|
||||
@@ -39,10 +39,5 @@
|
||||
<groupId>com.zzsmart.qomo</groupId>
|
||||
<artifactId>qomo-data-selfReport</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-httpclient</groupId>
|
||||
<artifactId>commons-httpclient</artifactId>
|
||||
<version>3.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
-248
@@ -1,248 +0,0 @@
|
||||
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<AppSceneCostActual, IAppSceneCostActualService> {
|
||||
@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<IPage<AppSceneCostActual>> queryPageList(AppSceneCostActual appSceneCostActual,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostActual> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostActual, req.getParameterMap());
|
||||
queryWrapper.orderByDesc("create_time");
|
||||
Page<AppSceneCostActual> page = new Page<AppSceneCostActual>(pageNo, pageSize);
|
||||
IPage<AppSceneCostActual> 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<String> 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<String> 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<String> 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<String> 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<AppSceneCostActual> 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<List<String>> queryParent(@RequestParam(name="resultid", defaultValue="") int resultid,
|
||||
@RequestParam(name="matnr", defaultValue="") String matnr) {
|
||||
List<String> 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<List<AppSceneCostSapZcorc>> queryMatnrDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
|
||||
@RequestParam(name="matnr", defaultValue="") String matnr) {
|
||||
List<AppSceneCostSapZcorc> 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<List<RealLaborVO>> queryAufnrDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
|
||||
@RequestParam(name="matnr", defaultValue="") String matnr) {
|
||||
List<RealLaborVO> 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<List<RealProduceVO>> queryProduceDetail(@RequestParam(name="resultid", defaultValue="") int resultid,
|
||||
@RequestParam(name="matnr", defaultValue="") String matnr) {
|
||||
List<RealProduceVO> 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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
-179
@@ -1,179 +0,0 @@
|
||||
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<AppSceneCostAufnrMatnr, IAppSceneCostAufnrMatnrService> {
|
||||
@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<IPage<AppSceneCostAufnrMatnr>> queryPageList(AppSceneCostAufnrMatnr appSceneCostAufnrMatnr,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostAufnrMatnr> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostAufnrMatnr, req.getParameterMap());
|
||||
Page<AppSceneCostAufnrMatnr> page = new Page<AppSceneCostAufnrMatnr>(pageNo, pageSize);
|
||||
IPage<AppSceneCostAufnrMatnr> 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<String> 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<String> 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<String> 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<String> 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<AppSceneCostAufnrMatnr> 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);
|
||||
}
|
||||
|
||||
}
|
||||
+14
-16
@@ -53,24 +53,23 @@ public class AppSceneCostCountController extends JeecgController<AppSceneCostCou
|
||||
//@AutoLog(value = "app_scene_cost_count-分页列表查询")
|
||||
@ApiOperation(value = "标准成本计算-分页列表查询", notes = "标准成本计算-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<AppSceneCostCount>> queryPageList(AppSceneCostCount appSceneCostCount, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
|
||||
public Result<IPage<AppSceneCostCountVO>> queryPageList(AppSceneCostCount appSceneCostCount, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostCount> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostCount, req.getParameterMap());
|
||||
queryWrapper.orderByDesc("create_time");
|
||||
Page<AppSceneCostCount> page = new Page<AppSceneCostCount>(pageNo, pageSize);
|
||||
IPage<AppSceneCostCount> pageList = appSceneCostCountService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
//IPage<AppSceneCostCountVO> pageList1 = new Page<>();
|
||||
//BeanUtils.copyProperties(pageList, pageList1);
|
||||
// List<AppSceneCostCountVO>list=new ArrayList<>();
|
||||
// for(int i=0;i<pageList.getRecords().size();i++){
|
||||
// AppSceneCostCount appSceneCostCount1 = pageList.getRecords().get(i);
|
||||
// AppSceneCostCountVO appSceneCostCountVO = new AppSceneCostCountVO();
|
||||
// BeanUtils.copyProperties(appSceneCostCount1, appSceneCostCountVO);
|
||||
// appSceneCostCountVO.setStatusName(CostCountStatusEnum.getTextByValue(appSceneCostCount1.getStatus()));
|
||||
// list.add(appSceneCostCountVO);
|
||||
// }
|
||||
// pageList1.setRecords(list);
|
||||
// return Result.OK(pageList1);
|
||||
IPage<AppSceneCostCountVO> pageList1 = new Page<>();
|
||||
BeanUtils.copyProperties(pageList, pageList1);
|
||||
List<AppSceneCostCountVO>list=new ArrayList<>();
|
||||
for(int i=0;i<pageList.getRecords().size();i++){
|
||||
AppSceneCostCount appSceneCostCount1 = pageList.getRecords().get(i);
|
||||
AppSceneCostCountVO appSceneCostCountVO = new AppSceneCostCountVO();
|
||||
BeanUtils.copyProperties(appSceneCostCount1, appSceneCostCountVO);
|
||||
appSceneCostCountVO.setStatusName(CostCountStatusEnum.getTextByValue(appSceneCostCount1.getStatus()));
|
||||
list.add(appSceneCostCountVO);
|
||||
}
|
||||
pageList1.setRecords(list);
|
||||
return Result.OK(pageList1);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -175,8 +174,7 @@ public class AppSceneCostCountController extends JeecgController<AppSceneCostCou
|
||||
//@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_count:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
//return super.importExcel(request, response, AppSceneCostCount.class);
|
||||
return appSceneCostCountService.BatchCount(request,response);
|
||||
return super.importExcel(request, response, AppSceneCostCount.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
-178
@@ -1,178 +0,0 @@
|
||||
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<AppSceneCostInvoice, IAppSceneCostInvoiceService> {
|
||||
@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<IPage<AppSceneCostInvoice>> queryPageList(AppSceneCostInvoice appSceneCostInvoice,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostInvoice> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostInvoice, req.getParameterMap());
|
||||
Page<AppSceneCostInvoice> page = new Page<AppSceneCostInvoice>(pageNo, pageSize);
|
||||
IPage<AppSceneCostInvoice> 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<String> 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<String> 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<String> 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<String> 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<AppSceneCostInvoice> 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);
|
||||
}
|
||||
|
||||
}
|
||||
-196
@@ -1,196 +0,0 @@
|
||||
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<AppSceneCostMiningAufnr, IAppSceneCostMiningAufnrService> {
|
||||
@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<IPage<AppSceneCostMiningAufnr>> queryPageList(AppSceneCostMiningAufnr appSceneCostMiningAufnr,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostMiningAufnr> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningAufnr, req.getParameterMap());
|
||||
Page<AppSceneCostMiningAufnr> page = new Page<AppSceneCostMiningAufnr>(pageNo, pageSize);
|
||||
IPage<AppSceneCostMiningAufnr> 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<String> 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<String> 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<String> 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<String> 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<List<LaborDiffVO> > queryLaborById(@RequestParam(name="id",required=true) int id) {
|
||||
List<LaborDiffVO> 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<List<ProduceDiffVO> > queryProduceById(@RequestParam(name="id",required=true) int id) {
|
||||
List<ProduceDiffVO> 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);
|
||||
}
|
||||
|
||||
}
|
||||
-181
@@ -1,181 +0,0 @@
|
||||
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<AppSceneCostMiningDiff, IAppSceneCostMiningDiffService> {
|
||||
@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<IPage<AppSceneCostMiningDiff>> queryPageList(AppSceneCostMiningDiff appSceneCostMiningDiff,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostMiningDiff> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningDiff, req.getParameterMap());
|
||||
Page<AppSceneCostMiningDiff> page = new Page<AppSceneCostMiningDiff>(pageNo, pageSize);
|
||||
IPage<AppSceneCostMiningDiff> 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<String> 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<String> 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<String> 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<String> 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<List<MiningDiffTotalVO>> queryById(@RequestParam(name="id",required=true) int id) {
|
||||
List<MiningDiffTotalVO> 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);
|
||||
}
|
||||
|
||||
}
|
||||
-179
@@ -1,179 +0,0 @@
|
||||
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<AppSceneCostMiningLabor, IAppSceneCostMiningLaborService> {
|
||||
@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<IPage<AppSceneCostMiningLabor>> queryPageList(AppSceneCostMiningLabor appSceneCostMiningLabor,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostMiningLabor> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningLabor, req.getParameterMap());
|
||||
Page<AppSceneCostMiningLabor> page = new Page<AppSceneCostMiningLabor>(pageNo, pageSize);
|
||||
IPage<AppSceneCostMiningLabor> 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<String> 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<String> 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<String> 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<String> 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<AppSceneCostMiningLabor> 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);
|
||||
}
|
||||
|
||||
}
|
||||
-184
@@ -1,184 +0,0 @@
|
||||
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<AppSceneCostMiningMaterial, IAppSceneCostMiningMaterialService> {
|
||||
@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<IPage<AppSceneCostMiningMaterial>> queryPageList(AppSceneCostMiningMaterial appSceneCostMiningMaterial,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostMiningMaterial> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningMaterial, req.getParameterMap());
|
||||
Page<AppSceneCostMiningMaterial> page = new Page<AppSceneCostMiningMaterial>(pageNo, pageSize);
|
||||
IPage<AppSceneCostMiningMaterial> 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<String> 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<String> 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<String> 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<String> 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<List<MaterialDiff>> queryById(@RequestParam(name="id",required=true) int id) {
|
||||
List<MaterialDiff> 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);
|
||||
}
|
||||
|
||||
}
|
||||
-179
@@ -1,179 +0,0 @@
|
||||
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<AppSceneCostMiningReason, IAppSceneCostMiningReasonService> {
|
||||
@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<IPage<AppSceneCostMiningReason>> queryPageList(AppSceneCostMiningReason appSceneCostMiningReason,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostMiningReason> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningReason, req.getParameterMap());
|
||||
Page<AppSceneCostMiningReason> page = new Page<AppSceneCostMiningReason>(pageNo, pageSize);
|
||||
IPage<AppSceneCostMiningReason> 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<String> 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<String> 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<String> 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<String> 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<AppSceneCostMiningReason> 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);
|
||||
}
|
||||
|
||||
}
|
||||
-213
@@ -1,213 +0,0 @@
|
||||
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<AppSceneCostMiningResult, IAppSceneCostMiningResultService> {
|
||||
@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<IPage<AppSceneCostMiningResult>> queryPageList(AppSceneCostMiningResult appSceneCostMiningResult,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostMiningResult> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostMiningResult, req.getParameterMap());
|
||||
queryWrapper.orderByDesc("startdate");
|
||||
Page<AppSceneCostMiningResult> page = new Page<AppSceneCostMiningResult>(pageNo, pageSize);
|
||||
IPage<AppSceneCostMiningResult> 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<String> 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<String> 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<String> 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<String> 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<AppSceneCostMiningResult> 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<MatnrVersionVO> 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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
-180
@@ -1,180 +0,0 @@
|
||||
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<AppSceneCostSapAfru, IAppSceneCostSapAfruService> {
|
||||
@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<IPage<AppSceneCostSapAfru>> queryPageList(AppSceneCostSapAfru appSceneCostSapAfru,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostSapAfru> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapAfru, req.getParameterMap());
|
||||
Page<AppSceneCostSapAfru> page = new Page<AppSceneCostSapAfru>(pageNo, pageSize);
|
||||
IPage<AppSceneCostSapAfru> 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<String> 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<String> 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<String> 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<String> 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<AppSceneCostSapAfru> 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);
|
||||
}
|
||||
|
||||
}
|
||||
-178
@@ -1,178 +0,0 @@
|
||||
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<AppSceneCostSapEkpo, IAppSceneCostSapEkpoService> {
|
||||
@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<IPage<AppSceneCostSapEkpo>> queryPageList(AppSceneCostSapEkpo appSceneCostSapEkpo,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostSapEkpo> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapEkpo, req.getParameterMap());
|
||||
Page<AppSceneCostSapEkpo> page = new Page<AppSceneCostSapEkpo>(pageNo, pageSize);
|
||||
IPage<AppSceneCostSapEkpo> 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<String> 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<String> 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<String> 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<String> 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<AppSceneCostSapEkpo> 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);
|
||||
}
|
||||
|
||||
}
|
||||
-180
@@ -1,180 +0,0 @@
|
||||
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<AppSceneCostSapHourRate, IAppSceneCostSapHourRateService> {
|
||||
@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<IPage<AppSceneCostSapHourRate>> queryPageList(AppSceneCostSapHourRate appSceneCostSapHourRate,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostSapHourRate> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapHourRate, req.getParameterMap());
|
||||
Page<AppSceneCostSapHourRate> page = new Page<AppSceneCostSapHourRate>(pageNo, pageSize);
|
||||
IPage<AppSceneCostSapHourRate> 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<String> 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<String> 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<String> 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<String> 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<AppSceneCostSapHourRate> 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);
|
||||
}
|
||||
|
||||
}
|
||||
-220
@@ -1,220 +0,0 @@
|
||||
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<AppSceneCostSapZcorc, IAppSceneCostSapZcorcService> {
|
||||
@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<IPage<AppSceneCostSapZcorc>> queryPageList(AppSceneCostSapZcorc appSceneCostSapZcorc,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostSapZcorc> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapZcorc, req.getParameterMap());
|
||||
Page<AppSceneCostSapZcorc> page = new Page<AppSceneCostSapZcorc>(pageNo, pageSize);
|
||||
IPage<AppSceneCostSapZcorc> 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<String> 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<String> 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<String> 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<String> 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<String> 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<AppSceneCostSapZcorc> 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);
|
||||
}
|
||||
|
||||
}
|
||||
-179
@@ -1,179 +0,0 @@
|
||||
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<AppSceneCostSapZtmmx004, IAppSceneCostSapZtmmx004Service> {
|
||||
@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<IPage<AppSceneCostSapZtmmx004>> queryPageList(AppSceneCostSapZtmmx004 appSceneCostSapZtmmx004,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostSapZtmmx004> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostSapZtmmx004, req.getParameterMap());
|
||||
Page<AppSceneCostSapZtmmx004> page = new Page<AppSceneCostSapZtmmx004>(pageNo, pageSize);
|
||||
IPage<AppSceneCostSapZtmmx004> 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<String> 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<String> 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<String> 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<String> 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<AppSceneCostSapZtmmx004> 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);
|
||||
}
|
||||
|
||||
}
|
||||
-179
@@ -1,179 +0,0 @@
|
||||
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<AppSceneCostStandardBom, IAppSceneCostStandardBomService> {
|
||||
@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<IPage<AppSceneCostStandardBom>> queryPageList(AppSceneCostStandardBom appSceneCostStandardBom,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<AppSceneCostStandardBom> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostStandardBom, req.getParameterMap());
|
||||
Page<AppSceneCostStandardBom> page = new Page<AppSceneCostStandardBom>(pageNo, pageSize);
|
||||
IPage<AppSceneCostStandardBom> 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<String> 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<String> 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<String> 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<String> 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<AppSceneCostStandardBom> 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);
|
||||
}
|
||||
|
||||
}
|
||||
+3
-3
@@ -56,7 +56,7 @@ public class AppSceneCostStandardResultController extends JeecgController<AppSce
|
||||
appSceneCostStandardResult.setVersionNumber(" ");
|
||||
}
|
||||
QueryWrapper<AppSceneCostStandardResult> queryWrapper = QueryGenerator.initQueryWrapper(appSceneCostStandardResult, req.getParameterMap());
|
||||
queryWrapper.orderByAsc("id");
|
||||
queryWrapper.orderByAsc("layer");
|
||||
Page<AppSceneCostStandardResult> page = new Page<AppSceneCostStandardResult>(pageNo, pageSize);
|
||||
IPage<AppSceneCostStandardResult> pageList = appSceneCostStandardResultService.page(page, queryWrapper);
|
||||
// IPage<AppSceneCostStandardResultVO> newpageList = new Page<>();
|
||||
@@ -182,8 +182,8 @@ public class AppSceneCostStandardResultController extends JeecgController<AppSce
|
||||
// //@RequiresPermissions("com.zzsmart.qomo.kn.cost.manage:app_scene_cost_standard_detail:exportXls")
|
||||
@GetMapping(value = "/exportXls")
|
||||
@ApiOperation(value = "cost-单行查询导出", notes = "cost-单行查询导出")
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostStandardResult appSceneCostStandardResult) {
|
||||
return appSceneCostStandardResultService.exportXls2(request, appSceneCostStandardResult, AppSceneCostStandardResult.class, "标准成本单行导出");
|
||||
public ModelAndView exportXls(HttpServletRequest request, AppSceneCostStandardResult appSceneCostStandardDetail) {
|
||||
return super.exportXls(request, appSceneCostStandardDetail, AppSceneCostStandardResult.class, "标准成本单行导出");
|
||||
}
|
||||
|
||||
// /**
|
||||
|
||||
-81
@@ -1,81 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_actual
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@TableName("app_scene_cost_actual")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_actual对象", description="app_scene_cost_actual")
|
||||
public class AppSceneCostActual implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Integer id;
|
||||
/**工厂*/
|
||||
@Excel(name = "工厂", width = 15)
|
||||
@ApiModelProperty(value = "工厂")
|
||||
private String werks;
|
||||
/**物料编号*/
|
||||
@Excel(name = "物料编号", width = 15)
|
||||
@ApiModelProperty(value = "物料编号")
|
||||
private String matnr;
|
||||
/**会计期间*/
|
||||
@Excel(name = "会计期间", width = 15)
|
||||
@ApiModelProperty(value = "会计期间")
|
||||
private String ymonth;
|
||||
/**版本*/
|
||||
@Excel(name = "版本", width = 15)
|
||||
@ApiModelProperty(value = "版本")
|
||||
private String version;
|
||||
/**版本*/
|
||||
@Excel(name = "订单号", width = 15)
|
||||
@ApiModelProperty(value = "订单号")
|
||||
private String aufnr;
|
||||
/**状态*/
|
||||
@Excel(name = "状态", width = 15)
|
||||
@ApiModelProperty(value = "状态")
|
||||
private Integer status;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private Integer createBy;
|
||||
/**创建时间*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private Integer updateBy;
|
||||
/**更新时间*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private Date updateTime;
|
||||
}
|
||||
-59
@@ -1,59 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_aufnr_matnr
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-05
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_aufnr_matnr")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_aufnr_matnr对象", description="app_scene_cost_aufnr_matnr")
|
||||
public class AppSceneCostAufnrMatnr implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
/**物料号*/
|
||||
@Excel(name = "物料号", width = 15)
|
||||
@ApiModelProperty(value = "物料号")
|
||||
private String matnr;
|
||||
/**物料名称*/
|
||||
@Excel(name = "物料名称", width = 15)
|
||||
@ApiModelProperty(value = "物料名称")
|
||||
private String maktx;
|
||||
/**内部订单号*/
|
||||
@Excel(name = "内部订单号", width = 15)
|
||||
@ApiModelProperty(value = "内部订单号")
|
||||
private String aufnr;
|
||||
/**内部订单描述*/
|
||||
@Excel(name = "内部订单描述", width = 15)
|
||||
@ApiModelProperty(value = "内部订单描述")
|
||||
private String aufnrDes;
|
||||
/**年份*/
|
||||
@Excel(name = "年份", width = 15)
|
||||
@ApiModelProperty(value = "年份")
|
||||
private String year;
|
||||
}
|
||||
+4
-71
@@ -12,7 +12,6 @@ import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
@@ -35,7 +34,7 @@ public class AppSceneCostCount implements Serializable {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Integer id;
|
||||
/**
|
||||
@@ -47,9 +46,9 @@ public class AppSceneCostCount implements Serializable {
|
||||
/**
|
||||
* 图号
|
||||
*/
|
||||
@Excel(name = "物料描述", width = 15)
|
||||
@ApiModelProperty(value = "物料描述")
|
||||
private String maktx;
|
||||
@Excel(name = "图号", width = 15)
|
||||
@ApiModelProperty(value = "图号")
|
||||
private String drawingNo;
|
||||
/**
|
||||
* stage
|
||||
*/
|
||||
@@ -80,72 +79,6 @@ public class AppSceneCostCount implements Serializable {
|
||||
@Excel(name = "标准成本版本", width = 15)
|
||||
@ApiModelProperty(value = "标准成本版本")
|
||||
private String costVersion;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "工厂", width = 15)
|
||||
@ApiModelProperty(value = "工厂")
|
||||
private String werks;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "内部订单号", width = 15)
|
||||
@ApiModelProperty(value = "内部订单号")
|
||||
private String aufnr;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "总标准成本", width = 15)
|
||||
@ApiModelProperty(value = "总标准成本")
|
||||
private BigDecimal standardTotal;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "材料成本", width = 15)
|
||||
@ApiModelProperty(value = "材料成本")
|
||||
private BigDecimal materialCost;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "直接人工", width = 15)
|
||||
@ApiModelProperty(value = "直接人工")
|
||||
private BigDecimal laborCost;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "折旧", width = 15)
|
||||
@ApiModelProperty(value = "折旧")
|
||||
private BigDecimal equipCost;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "燃动力", width = 15)
|
||||
@ApiModelProperty(value = "燃动力")
|
||||
private BigDecimal fuelCost;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "辅料", width = 15)
|
||||
@ApiModelProperty(value = "辅料")
|
||||
private BigDecimal auxiCost;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "其他费用", width = 15)
|
||||
@ApiModelProperty(value = "其他费用")
|
||||
private BigDecimal otherCost;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "人工工时(分钟)", width = 15)
|
||||
@ApiModelProperty(value = "人工工时(分钟)")
|
||||
private BigDecimal laborHour;
|
||||
/**
|
||||
* 模型版本
|
||||
*/
|
||||
@Excel(name = "机器工时(分钟)", width = 15)
|
||||
@ApiModelProperty(value = "机器工时(分钟)")
|
||||
private BigDecimal machineHour;
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
|
||||
-151
@@ -1,151 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_invoice
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-22
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_invoice")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_invoice对象", description="app_scene_cost_invoice")
|
||||
public class AppSceneCostInvoice implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**matnr*/
|
||||
@Excel(name = "matnr", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**posnr*/
|
||||
@Excel(name = "posnr", width = 15)
|
||||
@ApiModelProperty(value = "posnr")
|
||||
private String posnr;
|
||||
/**vbeln*/
|
||||
@Excel(name = "vbeln", width = 15)
|
||||
@ApiModelProperty(value = "vbeln")
|
||||
private String vbeln;
|
||||
/**aupos*/
|
||||
@Excel(name = "aupos", width = 15)
|
||||
@ApiModelProperty(value = "aupos")
|
||||
private String aupos;
|
||||
/**aubel*/
|
||||
@Excel(name = "aubel", width = 15)
|
||||
@ApiModelProperty(value = "aubel")
|
||||
private String aubel;
|
||||
/**bukrs*/
|
||||
@Excel(name = "bukrs", width = 15)
|
||||
@ApiModelProperty(value = "bukrs")
|
||||
private String bukrs;
|
||||
/**werks*/
|
||||
@Excel(name = "werks", width = 15)
|
||||
@ApiModelProperty(value = "werks")
|
||||
private String werks;
|
||||
/**gjahr*/
|
||||
@Excel(name = "gjahr", width = 15)
|
||||
@ApiModelProperty(value = "gjahr")
|
||||
private String gjahr;
|
||||
/**poper*/
|
||||
@Excel(name = "poper", width = 15)
|
||||
@ApiModelProperty(value = "poper")
|
||||
private String poper;
|
||||
/**kunrg*/
|
||||
@Excel(name = "kunrg", width = 15)
|
||||
@ApiModelProperty(value = "kunrg")
|
||||
private String kunrg;
|
||||
/**vkbur*/
|
||||
@Excel(name = "vkbur", width = 15)
|
||||
@ApiModelProperty(value = "vkbur")
|
||||
private String vkbur;
|
||||
/**bezei*/
|
||||
@Excel(name = "bezei", width = 15)
|
||||
@ApiModelProperty(value = "bezei")
|
||||
private String bezei;
|
||||
/**fkdat*/
|
||||
@Excel(name = "fkdat", width = 15)
|
||||
@ApiModelProperty(value = "fkdat")
|
||||
private String fkdat;
|
||||
/**kurrf*/
|
||||
@Excel(name = "kurrf", width = 15)
|
||||
@ApiModelProperty(value = "kurrf")
|
||||
private String kurrf;
|
||||
/**erdat*/
|
||||
@Excel(name = "erdat", width = 15)
|
||||
@ApiModelProperty(value = "erdat")
|
||||
private String erdat;
|
||||
/**netwr*/
|
||||
@Excel(name = "netwr", width = 15)
|
||||
@ApiModelProperty(value = "netwr")
|
||||
private BigDecimal netwr;
|
||||
/**mwsbp*/
|
||||
@Excel(name = "mwsbp", width = 15)
|
||||
@ApiModelProperty(value = "mwsbp")
|
||||
private BigDecimal mwsbp;
|
||||
/**shkzg*/
|
||||
@Excel(name = "shkzg", width = 15)
|
||||
@ApiModelProperty(value = "shkzg")
|
||||
private String shkzg;
|
||||
/**fkimg*/
|
||||
@Excel(name = "fkimg", width = 15)
|
||||
@ApiModelProperty(value = "fkimg")
|
||||
private BigDecimal fkimg;
|
||||
/**name1*/
|
||||
@Excel(name = "name1", width = 15)
|
||||
@ApiModelProperty(value = "name1")
|
||||
private String name1;
|
||||
/**sortl*/
|
||||
@Excel(name = "sortl", width = 15)
|
||||
@ApiModelProperty(value = "sortl")
|
||||
private String sortl;
|
||||
/**spart*/
|
||||
@Excel(name = "spart", width = 15)
|
||||
@ApiModelProperty(value = "spart")
|
||||
private String spart;
|
||||
/**zzthzq*/
|
||||
@Excel(name = "zzthzq", width = 15)
|
||||
@ApiModelProperty(value = "zzthzq")
|
||||
private String zzthzq;
|
||||
/**yuanbiPrice*/
|
||||
@Excel(name = "yuanbiPrice", width = 15)
|
||||
@ApiModelProperty(value = "yuanbiPrice")
|
||||
private BigDecimal yuanbiPrice;
|
||||
/**yuanbiTotal*/
|
||||
@Excel(name = "yuanbiTotal", width = 15)
|
||||
@ApiModelProperty(value = "yuanbiTotal")
|
||||
private BigDecimal yuanbiTotal;
|
||||
/**benbiPrice*/
|
||||
@Excel(name = "benbiPrice", width = 15)
|
||||
@ApiModelProperty(value = "benbiPrice")
|
||||
private BigDecimal benbiPrice;
|
||||
/**benbiTotal*/
|
||||
@Excel(name = "benbiTotal", width = 15)
|
||||
@ApiModelProperty(value = "benbiTotal")
|
||||
private BigDecimal benbiTotal;
|
||||
/**maktx*/
|
||||
@Excel(name = "maktx", width = 15)
|
||||
@ApiModelProperty(value = "maktx")
|
||||
private String maktx;
|
||||
/**fkart*/
|
||||
@Excel(name = "fkart", width = 15)
|
||||
@ApiModelProperty(value = "fkart")
|
||||
private String fkart;
|
||||
}
|
||||
-83
@@ -1,83 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_aufnr
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_mining_aufnr")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_mining_aufnr对象", description="app_scene_cost_mining_aufnr")
|
||||
public class AppSceneCostMiningAufnr implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
/**resultid*/
|
||||
@Excel(name = "resultid", width = 15)
|
||||
@ApiModelProperty(value = "resultid")
|
||||
private Integer resultid;
|
||||
/**matnr*/
|
||||
@Excel(name = "matnr", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**aufnr*/
|
||||
@Excel(name = "aufnr", width = 15)
|
||||
@ApiModelProperty(value = "aufnr")
|
||||
private String aufnr;
|
||||
/**costcenter*/
|
||||
@Excel(name = "costcenter", width = 15)
|
||||
@ApiModelProperty(value = "costcenter")
|
||||
private String costcenter;
|
||||
/**budat*/
|
||||
@Excel(name = "budat", width = 15)
|
||||
@ApiModelProperty(value = "budat")
|
||||
private String budat;
|
||||
/**version*/
|
||||
@Excel(name = "version", width = 15)
|
||||
@ApiModelProperty(value = "version")
|
||||
private String version;
|
||||
/**laborratio*/
|
||||
@Excel(name = "laborratio", width = 15)
|
||||
@ApiModelProperty(value = "laborratio")
|
||||
private BigDecimal laborratio;
|
||||
/**productratio*/
|
||||
@Excel(name = "productratio", width = 15)
|
||||
@ApiModelProperty(value = "productratio")
|
||||
private BigDecimal productratio;
|
||||
/**labordiff*/
|
||||
@Excel(name = "labordiff", width = 15)
|
||||
@ApiModelProperty(value = "labordiff")
|
||||
private BigDecimal labordiff;
|
||||
/**productdiff*/
|
||||
@Excel(name = "productdiff", width = 15)
|
||||
@ApiModelProperty(value = "productdiff")
|
||||
private BigDecimal productdiff;
|
||||
/**jsondata*/
|
||||
@Excel(name = "jsondata", width = 15)
|
||||
@ApiModelProperty(value = "jsondata")
|
||||
private String jsondata;
|
||||
}
|
||||
-59
@@ -1,59 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_diff
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_mining_diff")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_mining_diff对象", description="app_scene_cost_mining_diff")
|
||||
public class AppSceneCostMiningDiff implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
/**resultid*/
|
||||
@Excel(name = "resultid", width = 15)
|
||||
@ApiModelProperty(value = "resultid")
|
||||
private Integer resultid;
|
||||
/**type*/
|
||||
@Excel(name = "type", width = 15)
|
||||
@ApiModelProperty(value = "type")
|
||||
private String type;
|
||||
/**reason*/
|
||||
@Excel(name = "reason", width = 15)
|
||||
@ApiModelProperty(value = "reason")
|
||||
private String reason;
|
||||
/**code*/
|
||||
@Excel(name = "code", width = 15)
|
||||
@ApiModelProperty(value = "code")
|
||||
private String code;
|
||||
/**value*/
|
||||
@Excel(name = "value", width = 15)
|
||||
@ApiModelProperty(value = "value")
|
||||
private Double value;
|
||||
}
|
||||
-175
@@ -1,175 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_labor
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-11-05
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_mining_labor")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_mining_labor对象", description="app_scene_cost_mining_labor")
|
||||
public class AppSceneCostMiningLabor implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
/**resultid*/
|
||||
@Excel(name = "resultid", width = 15)
|
||||
@ApiModelProperty(value = "resultid")
|
||||
private Integer resultid;
|
||||
/**matnr*/
|
||||
@Excel(name = "matnr", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**maktx*/
|
||||
@Excel(name = "maktx", width = 15)
|
||||
@ApiModelProperty(value = "maktx")
|
||||
private String maktx;
|
||||
/**menge*/
|
||||
@Excel(name = "menge", width = 15)
|
||||
@ApiModelProperty(value = "menge")
|
||||
private BigDecimal menge;
|
||||
/**rgRealUse*/
|
||||
@Excel(name = "rgRealUse", width = 15)
|
||||
@ApiModelProperty(value = "rgRealUse")
|
||||
private BigDecimal rgRealUse;
|
||||
/**rgRealCost*/
|
||||
@Excel(name = "rgRealCost", width = 15)
|
||||
@ApiModelProperty(value = "rgRealCost")
|
||||
private BigDecimal rgRealCost;
|
||||
/**rgStdUse*/
|
||||
@Excel(name = "rgStdUse", width = 15)
|
||||
@ApiModelProperty(value = "rgStdUse")
|
||||
private BigDecimal rgStdUse;
|
||||
/**rgStdCost*/
|
||||
@Excel(name = "rgStdCost", width = 15)
|
||||
@ApiModelProperty(value = "rgStdCost")
|
||||
private BigDecimal rgStdCost;
|
||||
/**rgUseDiff*/
|
||||
@Excel(name = "rgUseDiff", width = 15)
|
||||
@ApiModelProperty(value = "rgUseDiff")
|
||||
private BigDecimal rgUseDiff;
|
||||
/**rgCostDiff*/
|
||||
@Excel(name = "rgCostDiff", width = 15)
|
||||
@ApiModelProperty(value = "rgCostDiff")
|
||||
private BigDecimal rgCostDiff;
|
||||
/**zjRealUse*/
|
||||
@Excel(name = "zjRealUse", width = 15)
|
||||
@ApiModelProperty(value = "zjRealUse")
|
||||
private BigDecimal zjRealUse;
|
||||
/**zjRealCost*/
|
||||
@Excel(name = "zjRealCost", width = 15)
|
||||
@ApiModelProperty(value = "zjRealCost")
|
||||
private BigDecimal zjRealCost;
|
||||
/**zjStdUse*/
|
||||
@Excel(name = "zjStdUse", width = 15)
|
||||
@ApiModelProperty(value = "zjStdUse")
|
||||
private BigDecimal zjStdUse;
|
||||
/**zjStdCost*/
|
||||
@Excel(name = "zjStdCost", width = 15)
|
||||
@ApiModelProperty(value = "zjStdCost")
|
||||
private BigDecimal zjStdCost;
|
||||
/**zjUseDiff*/
|
||||
@Excel(name = "zjUseDiff", width = 15)
|
||||
@ApiModelProperty(value = "zjUseDiff")
|
||||
private BigDecimal zjUseDiff;
|
||||
/**zjCostDiff*/
|
||||
@Excel(name = "zjCostDiff", width = 15)
|
||||
@ApiModelProperty(value = "zjCostDiff")
|
||||
private BigDecimal zjCostDiff;
|
||||
/**rdRealUse*/
|
||||
@Excel(name = "rdRealUse", width = 15)
|
||||
@ApiModelProperty(value = "rdRealUse")
|
||||
private BigDecimal rdRealUse;
|
||||
/**rdRealCost*/
|
||||
@Excel(name = "rdRealCost", width = 15)
|
||||
@ApiModelProperty(value = "rdRealCost")
|
||||
private BigDecimal rdRealCost;
|
||||
/**rdStdUse*/
|
||||
@Excel(name = "rdStdUse", width = 15)
|
||||
@ApiModelProperty(value = "rdStdUse")
|
||||
private BigDecimal rdStdUse;
|
||||
/**rdStdCost*/
|
||||
@Excel(name = "rdStdCost", width = 15)
|
||||
@ApiModelProperty(value = "rdStdCost")
|
||||
private BigDecimal rdStdCost;
|
||||
/**rdUseDiff*/
|
||||
@Excel(name = "rdUseDiff", width = 15)
|
||||
@ApiModelProperty(value = "rdUseDiff")
|
||||
private BigDecimal rdUseDiff;
|
||||
/**rdCostDiff*/
|
||||
@Excel(name = "rdCostDiff", width = 15)
|
||||
@ApiModelProperty(value = "rdCostDiff")
|
||||
private BigDecimal rdCostDiff;
|
||||
/**flRealUse*/
|
||||
@Excel(name = "flRealUse", width = 15)
|
||||
@ApiModelProperty(value = "flRealUse")
|
||||
private BigDecimal flRealUse;
|
||||
/**flRealCost*/
|
||||
@Excel(name = "flRealCost", width = 15)
|
||||
@ApiModelProperty(value = "flRealCost")
|
||||
private BigDecimal flRealCost;
|
||||
/**flStdUse*/
|
||||
@Excel(name = "flStdUse", width = 15)
|
||||
@ApiModelProperty(value = "flStdUse")
|
||||
private BigDecimal flStdUse;
|
||||
/**flStdCost*/
|
||||
@Excel(name = "flStdCost", width = 15)
|
||||
@ApiModelProperty(value = "flStdCost")
|
||||
private BigDecimal flStdCost;
|
||||
/**flUseDiff*/
|
||||
@Excel(name = "flUseDiff", width = 15)
|
||||
@ApiModelProperty(value = "flUseDiff")
|
||||
private BigDecimal flUseDiff;
|
||||
/**flCostDiff*/
|
||||
@Excel(name = "flCostDiff", width = 15)
|
||||
@ApiModelProperty(value = "flCostDiff")
|
||||
private BigDecimal flCostDiff;
|
||||
/**qtRealUse*/
|
||||
@Excel(name = "qtRealUse", width = 15)
|
||||
@ApiModelProperty(value = "qtRealUse")
|
||||
private BigDecimal qtRealUse;
|
||||
/**qtRealCost*/
|
||||
@Excel(name = "qtRealCost", width = 15)
|
||||
@ApiModelProperty(value = "qtRealCost")
|
||||
private BigDecimal qtRealCost;
|
||||
/**qtStdUse*/
|
||||
@Excel(name = "qtStdUse", width = 15)
|
||||
@ApiModelProperty(value = "qtStdUse")
|
||||
private BigDecimal qtStdUse;
|
||||
/**qtStdCost*/
|
||||
@Excel(name = "qtStdCost", width = 15)
|
||||
@ApiModelProperty(value = "qtStdCost")
|
||||
private BigDecimal qtStdCost;
|
||||
/**qtUseDiff*/
|
||||
@Excel(name = "qtUseDiff", width = 15)
|
||||
@ApiModelProperty(value = "qtUseDiff")
|
||||
private BigDecimal qtUseDiff;
|
||||
/**qtCostDiff*/
|
||||
@Excel(name = "qtCostDiff", width = 15)
|
||||
@ApiModelProperty(value = "qtCostDiff")
|
||||
private BigDecimal qtCostDiff;
|
||||
}
|
||||
-67
@@ -1,67 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_material
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_mining_material")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_mining_material对象", description="app_scene_cost_mining_material")
|
||||
public class AppSceneCostMiningMaterial implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
/**resultid*/
|
||||
@Excel(name = "resultid", width = 15)
|
||||
@ApiModelProperty(value = "resultid")
|
||||
private Integer resultid;
|
||||
/**matnr*/
|
||||
@Excel(name = "matnr", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**aufnr*/
|
||||
@Excel(name = "aufnr", width = 15)
|
||||
@ApiModelProperty(value = "aufnr")
|
||||
private String aufnr;
|
||||
/**version*/
|
||||
@Excel(name = "version", width = 15)
|
||||
@ApiModelProperty(value = "version")
|
||||
private String version;
|
||||
/**totaldiff*/
|
||||
@Excel(name = "totaldiff", width = 15)
|
||||
@ApiModelProperty(value = "totaldiff")
|
||||
private BigDecimal totaldiff;
|
||||
/**ratio*/
|
||||
@Excel(name = "ratio", width = 15)
|
||||
@ApiModelProperty(value = "ratio")
|
||||
private BigDecimal ratio;
|
||||
/**jsondata*/
|
||||
@Excel(name = "jsondata", width = 15)
|
||||
@ApiModelProperty(value = "jsondata")
|
||||
private String jsondata;
|
||||
}
|
||||
-51
@@ -1,51 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_reason
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_mining_reason")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_mining_reason对象", description="app_scene_cost_mining_reason")
|
||||
public class AppSceneCostMiningReason implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**code*/
|
||||
@Excel(name = "code", width = 15)
|
||||
@ApiModelProperty(value = "code")
|
||||
private String code;
|
||||
/**reason*/
|
||||
@Excel(name = "reason", width = 15)
|
||||
@ApiModelProperty(value = "reason")
|
||||
private String reason;
|
||||
/**level*/
|
||||
@Excel(name = "level", width = 15)
|
||||
@ApiModelProperty(value = "level")
|
||||
private Integer level;
|
||||
/**pcode*/
|
||||
@Excel(name = "pcode", width = 15)
|
||||
@ApiModelProperty(value = "pcode")
|
||||
private String pcode;
|
||||
}
|
||||
-139
@@ -1,139 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_result
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_mining_result")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_mining_result对象", description="app_scene_cost_mining_result")
|
||||
public class AppSceneCostMiningResult implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
/**matnr*/
|
||||
@Excel(name = "matnr", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**aufnr*/
|
||||
@Excel(name = "aufnr", width = 15)
|
||||
@ApiModelProperty(value = "aufnr")
|
||||
private String aufnr;
|
||||
/**version*/
|
||||
@Excel(name = "version", width = 15)
|
||||
@ApiModelProperty(value = "version")
|
||||
private String version;
|
||||
/**wbs*/
|
||||
@Excel(name = "wbs", width = 15)
|
||||
@ApiModelProperty(value = "wbs")
|
||||
private String wbs;
|
||||
/**werks*/
|
||||
@Excel(name = "werks", width = 15)
|
||||
@ApiModelProperty(value = "werks")
|
||||
private String werks;
|
||||
/**totalreal*/
|
||||
@Excel(name = "totalreal", width = 15)
|
||||
@ApiModelProperty(value = "totalreal")
|
||||
private Double totalreal;
|
||||
/**totalstd*/
|
||||
@Excel(name = "totalstd", width = 15)
|
||||
@ApiModelProperty(value = "totalstd")
|
||||
private Double totalstd;
|
||||
/**ymonth*/
|
||||
@Excel(name = "ymonth", width = 15)
|
||||
@ApiModelProperty(value = "ymonth")
|
||||
private String ymonth;
|
||||
/**lgort*/
|
||||
@Excel(name = "lgort", width = 15)
|
||||
@ApiModelProperty(value = "lgort")
|
||||
private String lgort;
|
||||
/**ppsmng*/
|
||||
//@Excel(name = "ppsmng", width = 15)
|
||||
//@ApiModelProperty(value = "ppsmng")
|
||||
//private Double ppsmng;
|
||||
/**realmaterial*/
|
||||
@Excel(name = "realmaterial", width = 15)
|
||||
@ApiModelProperty(value = "realmaterial")
|
||||
private Double realmaterial;
|
||||
/**stdmaterial*/
|
||||
@Excel(name = "stdmaterial", width = 15)
|
||||
@ApiModelProperty(value = "stdmaterial")
|
||||
private Double stdmaterial;
|
||||
/**reallabor*/
|
||||
@Excel(name = "reallabor", width = 15)
|
||||
@ApiModelProperty(value = "reallabor")
|
||||
private Double reallabor;
|
||||
/**stdlabor*/
|
||||
@Excel(name = "stdlabor", width = 15)
|
||||
@ApiModelProperty(value = "stdlabor")
|
||||
private Double stdlabor;
|
||||
/**realproductcost*/
|
||||
@Excel(name = "realproductcost", width = 15)
|
||||
@ApiModelProperty(value = "realproductcost")
|
||||
private Double realproductcost;
|
||||
/**stdproductcost*/
|
||||
@Excel(name = "stdproductcost", width = 15)
|
||||
@ApiModelProperty(value = "stdproductcost")
|
||||
private Double stdproductcost;
|
||||
/**status*/
|
||||
@Excel(name = "status", width = 15)
|
||||
@ApiModelProperty(value = "status")
|
||||
private String status;
|
||||
/**err*/
|
||||
@Excel(name = "err", width = 15)
|
||||
@ApiModelProperty(value = "err")
|
||||
private String err;
|
||||
/**startdate*/
|
||||
@Excel(name = "startdate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "startdate")
|
||||
private Date startdate;
|
||||
/**enddate*/
|
||||
@Excel(name = "enddate", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "enddate")
|
||||
private Date enddate;
|
||||
/**batchymonth*/
|
||||
@Excel(name = "batchymonth", width = 15)
|
||||
@ApiModelProperty(value = "batchymonth")
|
||||
private String batchymonth;
|
||||
/**percent*/
|
||||
@Excel(name = "percent", width = 15)
|
||||
@ApiModelProperty(value = "percent")
|
||||
private Double percent;
|
||||
/**projectcate*/
|
||||
@Excel(name = "projectcate", width = 15)
|
||||
@ApiModelProperty(value = "projectcate")
|
||||
private String projectcate;
|
||||
/**hastransfer*/
|
||||
@Excel(name = "hastransfer", width = 15)
|
||||
@ApiModelProperty(value = "hastransfer")
|
||||
private Integer hastransfer;
|
||||
}
|
||||
-24
@@ -204,28 +204,4 @@ public class AppSceneCostResultValue implements Serializable {
|
||||
@Excel(name = "层级", width = 15)
|
||||
@ApiModelProperty(value = "层级")
|
||||
private String layer;
|
||||
|
||||
@Excel(name = "工厂", width = 15)
|
||||
@ApiModelProperty(value = "工厂")
|
||||
private String werks;
|
||||
|
||||
@Excel(name = "供应商", width = 15)
|
||||
@ApiModelProperty(value = "供应商")
|
||||
private String supplier;
|
||||
|
||||
@Excel(name = "供应商名称", width = 15)
|
||||
@ApiModelProperty(value = "供应商名称")
|
||||
private String supplierName;
|
||||
|
||||
@Excel(name = "临时合同估价", width = 15)
|
||||
@ApiModelProperty(value = "临时合同估价")
|
||||
private BigDecimal ekpoPrice;
|
||||
|
||||
@Excel(name = "最新开票价格", width = 15)
|
||||
@ApiModelProperty(value = "最新开票价格")
|
||||
private BigDecimal invoicePrice;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "父层级")
|
||||
private String player;
|
||||
}
|
||||
|
||||
-159
@@ -1,159 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_afru
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_sap_afru")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_sap_afru对象", description="app_scene_cost_sap_afru")
|
||||
public class AppSceneCostSapAfru implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**werks*/
|
||||
@Excel(name = "werks", width = 15)
|
||||
@ApiModelProperty(value = "werks")
|
||||
private String werks;
|
||||
/**aufnr*/
|
||||
@Excel(name = "aufnr", width = 15)
|
||||
@ApiModelProperty(value = "aufnr")
|
||||
private String aufnr;
|
||||
/**mandt*/
|
||||
@Excel(name = "mandt", width = 15)
|
||||
@ApiModelProperty(value = "mandt")
|
||||
private String mandt;
|
||||
/**projn*/
|
||||
@Excel(name = "projn", width = 15)
|
||||
@ApiModelProperty(value = "projn")
|
||||
private String projn;
|
||||
/**erdat*/
|
||||
@Excel(name = "erdat", width = 15)
|
||||
@ApiModelProperty(value = "erdat")
|
||||
private String erdat;
|
||||
/**gstrp*/
|
||||
@Excel(name = "gstrp", width = 15)
|
||||
@ApiModelProperty(value = "gstrp")
|
||||
private String gstrp;
|
||||
/**gltri*/
|
||||
@Excel(name = "gltri", width = 15)
|
||||
@ApiModelProperty(value = "gltri")
|
||||
private String gltri;
|
||||
/**plnbez*/
|
||||
@Excel(name = "plnbez", width = 15)
|
||||
@ApiModelProperty(value = "plnbez")
|
||||
private String plnbez;
|
||||
/**auart*/
|
||||
@Excel(name = "auart", width = 15)
|
||||
@ApiModelProperty(value = "auart")
|
||||
private String auart;
|
||||
/**txt*/
|
||||
@Excel(name = "txt", width = 15)
|
||||
@ApiModelProperty(value = "txt")
|
||||
private String txt;
|
||||
/**vornr*/
|
||||
@Excel(name = "vornr", width = 15)
|
||||
@ApiModelProperty(value = "vornr")
|
||||
private String vornr;
|
||||
/**aufpl*/
|
||||
@Excel(name = "aufpl", width = 15)
|
||||
@ApiModelProperty(value = "aufpl")
|
||||
private String aufpl;
|
||||
/**rueck*/
|
||||
@Excel(name = "rueck", width = 15)
|
||||
@ApiModelProperty(value = "rueck")
|
||||
private String rueck;
|
||||
/**ltxa1*/
|
||||
@Excel(name = "ltxa1", width = 15)
|
||||
@ApiModelProperty(value = "ltxa1")
|
||||
private String ltxa1;
|
||||
/**kostl*/
|
||||
@Excel(name = "kostl", width = 15)
|
||||
@ApiModelProperty(value = "kostl")
|
||||
private String kostl;
|
||||
/**budat*/
|
||||
@Excel(name = "budat", width = 15)
|
||||
@ApiModelProperty(value = "budat")
|
||||
private String budat;
|
||||
/**ism01*/
|
||||
@Excel(name = "ism01", width = 15)
|
||||
@ApiModelProperty(value = "ism01")
|
||||
private BigDecimal ism01;
|
||||
/**ism02*/
|
||||
@Excel(name = "ism02", width = 15)
|
||||
@ApiModelProperty(value = "ism02")
|
||||
private BigDecimal ism02;
|
||||
/**ism03*/
|
||||
@Excel(name = "ism03", width = 15)
|
||||
@ApiModelProperty(value = "ism03")
|
||||
private BigDecimal ism03;
|
||||
/**ism04*/
|
||||
@Excel(name = "ism04", width = 15)
|
||||
@ApiModelProperty(value = "ism04")
|
||||
private BigDecimal ism04;
|
||||
/**ism05*/
|
||||
@Excel(name = "ism05", width = 15)
|
||||
@ApiModelProperty(value = "ism05")
|
||||
private BigDecimal ism05;
|
||||
/**ism06*/
|
||||
@Excel(name = "ism06", width = 15)
|
||||
@ApiModelProperty(value = "ism06")
|
||||
private BigDecimal ism06;
|
||||
/**isdd*/
|
||||
@Excel(name = "isdd", width = 15)
|
||||
@ApiModelProperty(value = "isdd")
|
||||
private String isdd;
|
||||
/**isdz*/
|
||||
@Excel(name = "isdz", width = 15)
|
||||
@ApiModelProperty(value = "isdz")
|
||||
private String isdz;
|
||||
/**iedd*/
|
||||
@Excel(name = "iedd", width = 15)
|
||||
@ApiModelProperty(value = "iedd")
|
||||
private String iedd;
|
||||
/**iedz*/
|
||||
@Excel(name = "iedz", width = 15)
|
||||
@ApiModelProperty(value = "iedz")
|
||||
private String iedz;
|
||||
/**lmnga*/
|
||||
@Excel(name = "lmnga", width = 15)
|
||||
@ApiModelProperty(value = "lmnga")
|
||||
private BigDecimal lmnga;
|
||||
/**rmnga*/
|
||||
@Excel(name = "rmnga", width = 15)
|
||||
@ApiModelProperty(value = "rmnga")
|
||||
private BigDecimal rmnga;
|
||||
/**xmnga*/
|
||||
@Excel(name = "xmnga", width = 15)
|
||||
@ApiModelProperty(value = "xmnga")
|
||||
private BigDecimal xmnga;
|
||||
/**gamng*/
|
||||
@Excel(name = "gamng", width = 15)
|
||||
@ApiModelProperty(value = "gamng")
|
||||
private BigDecimal gamng;
|
||||
/**ym*/
|
||||
@Excel(name = "ym", width = 15)
|
||||
@ApiModelProperty(value = "ym")
|
||||
private String ym;
|
||||
}
|
||||
-115
@@ -1,115 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_eine
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-21
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_sap_eine")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_sap_eine对象", description="app_scene_cost_sap_eine")
|
||||
public class AppSceneCostSapEine implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**客户端*/
|
||||
@Excel(name = "客户端", width = 15)
|
||||
@ApiModelProperty(value = "客户端")
|
||||
private String mandt;
|
||||
/**工厂*/
|
||||
@Excel(name = "工厂", width = 15)
|
||||
@ApiModelProperty(value = "工厂")
|
||||
private String werks;
|
||||
/**采购组织*/
|
||||
@Excel(name = "采购组织", width = 15)
|
||||
@ApiModelProperty(value = "采购组织")
|
||||
private String ekorg;
|
||||
/**采购信息记录分类*/
|
||||
@Excel(name = "采购信息记录分类", width = 15)
|
||||
@ApiModelProperty(value = "采购信息记录分类")
|
||||
private String esokz;
|
||||
/**采购信息记录中的净价*/
|
||||
@Excel(name = "采购信息记录中的净价", width = 15)
|
||||
@ApiModelProperty(value = "采购信息记录中的净价")
|
||||
private BigDecimal netpr;
|
||||
/**价格单位*/
|
||||
@Excel(name = "价格单位", width = 15)
|
||||
@ApiModelProperty(value = "价格单位")
|
||||
private BigDecimal peinh;
|
||||
/**货币码*/
|
||||
@Excel(name = "货币码", width = 15)
|
||||
@ApiModelProperty(value = "货币码")
|
||||
private String waers;
|
||||
/**价格有效至*/
|
||||
@Excel(name = "价格有效至", width = 15)
|
||||
@ApiModelProperty(value = "价格有效至")
|
||||
private String prdat;
|
||||
/**记录的创建日期*/
|
||||
@Excel(name = "记录的创建日期", width = 15)
|
||||
@ApiModelProperty(value = "记录的创建日期")
|
||||
private String erdat;
|
||||
/**采购信息: 组织数据标记为删除*/
|
||||
@Excel(name = "采购信息: 组织数据标记为删除", width = 15)
|
||||
@ApiModelProperty(value = "采购信息: 组织数据标记为删除")
|
||||
private String loekz;
|
||||
/**采购信息记录的编号*/
|
||||
@Excel(name = "采购信息记录的编号", width = 15)
|
||||
@ApiModelProperty(value = "采购信息记录的编号")
|
||||
private String infnr;
|
||||
/**单价*/
|
||||
@Excel(name = "单价", width = 15)
|
||||
@ApiModelProperty(value = "单价")
|
||||
private BigDecimal price;
|
||||
/**汇率*/
|
||||
@Excel(name = "汇率", width = 15)
|
||||
@ApiModelProperty(value = "汇率")
|
||||
private BigDecimal ukurs;
|
||||
/**人民币价格*/
|
||||
@Excel(name = "人民币价格", width = 15)
|
||||
@ApiModelProperty(value = "人民币价格")
|
||||
private BigDecimal cnyPrice;
|
||||
/**物料编号*/
|
||||
@Excel(name = "物料编号", width = 15)
|
||||
@ApiModelProperty(value = "物料编号")
|
||||
private String matnr;
|
||||
/**物料组*/
|
||||
@Excel(name = "物料组", width = 15)
|
||||
@ApiModelProperty(value = "物料组")
|
||||
private String matkl;
|
||||
/**采购类型*/
|
||||
@Excel(name = "采购类型", width = 15)
|
||||
@ApiModelProperty(value = "采购类型")
|
||||
private String beskz;
|
||||
/**特殊采购类*/
|
||||
@Excel(name = "特殊采购类", width = 15)
|
||||
@ApiModelProperty(value = "特殊采购类")
|
||||
private String sobsl;
|
||||
/**供应商编码*/
|
||||
@Excel(name = "供应商编码", width = 15)
|
||||
@ApiModelProperty(value = "供应商编码")
|
||||
private String lifnr;
|
||||
/**供应商名称*/
|
||||
@Excel(name = "供应商名称", width = 15)
|
||||
@ApiModelProperty(value = "供应商名称")
|
||||
private String name1;
|
||||
}
|
||||
-95
@@ -1,95 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_ekpo
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-22
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_sap_ekpo")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_sap_ekpo对象", description="app_scene_cost_sap_ekpo")
|
||||
public class AppSceneCostSapEkpo implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**ebeln*/
|
||||
@Excel(name = "ebeln", width = 15)
|
||||
@ApiModelProperty(value = "ebeln")
|
||||
private String ebeln;
|
||||
/**ekorg*/
|
||||
@Excel(name = "ekorg", width = 15)
|
||||
@ApiModelProperty(value = "ekorg")
|
||||
private String ekorg;
|
||||
/**bukrs*/
|
||||
@Excel(name = "bukrs", width = 15)
|
||||
@ApiModelProperty(value = "bukrs")
|
||||
private String bukrs;
|
||||
/**ebelp*/
|
||||
@Excel(name = "ebelp", width = 15)
|
||||
@ApiModelProperty(value = "ebelp")
|
||||
private String ebelp;
|
||||
/**matnr*/
|
||||
@Excel(name = "matnr", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**werks*/
|
||||
@Excel(name = "werks", width = 15)
|
||||
@ApiModelProperty(value = "werks")
|
||||
private String werks;
|
||||
/**waers*/
|
||||
@Excel(name = "waers", width = 15)
|
||||
@ApiModelProperty(value = "waers")
|
||||
private String waers;
|
||||
/**netpr*/
|
||||
@Excel(name = "netpr", width = 15)
|
||||
@ApiModelProperty(value = "netpr")
|
||||
private BigDecimal netpr;
|
||||
/**kdatb*/
|
||||
@Excel(name = "kdatb", width = 15)
|
||||
@ApiModelProperty(value = "kdatb")
|
||||
private String kdatb;
|
||||
/**kdate*/
|
||||
@Excel(name = "kdate", width = 15)
|
||||
@ApiModelProperty(value = "kdate")
|
||||
private String kdate;
|
||||
/**bedat*/
|
||||
@Excel(name = "bedat", width = 15)
|
||||
@ApiModelProperty(value = "bedat")
|
||||
private String bedat;
|
||||
/**peinh*/
|
||||
@Excel(name = "peinh", width = 15)
|
||||
@ApiModelProperty(value = "peinh")
|
||||
private BigDecimal peinh;
|
||||
/**pstyp*/
|
||||
@Excel(name = "pstyp", width = 15)
|
||||
@ApiModelProperty(value = "pstyp")
|
||||
private String pstyp;
|
||||
/**relst*/
|
||||
@Excel(name = "relst", width = 15)
|
||||
@ApiModelProperty(value = "relst")
|
||||
private String relst;
|
||||
/**loekz*/
|
||||
@Excel(name = "loekz", width = 15)
|
||||
@ApiModelProperty(value = "loekz")
|
||||
private String loekz;
|
||||
}
|
||||
-67
@@ -1,67 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_hour_rate
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_sap_hour_rate")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_sap_hour_rate对象", description="app_scene_cost_sap_hour_rate")
|
||||
public class AppSceneCostSapHourRate implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Integer id;
|
||||
/**年月*/
|
||||
@Excel(name = "年月", width = 15)
|
||||
@ApiModelProperty(value = "年月")
|
||||
private String ym;
|
||||
/**成本中心代码*/
|
||||
@Excel(name = "成本中心代码", width = 15)
|
||||
@ApiModelProperty(value = "成本中心代码")
|
||||
private String centerCode;
|
||||
/**人工小时费率*/
|
||||
@Excel(name = "人工小时费率", width = 15)
|
||||
@ApiModelProperty(value = "人工小时费率")
|
||||
private BigDecimal rgfv;
|
||||
/**设备小时费率*/
|
||||
@Excel(name = "设备小时费率", width = 15)
|
||||
@ApiModelProperty(value = "设备小时费率")
|
||||
private BigDecimal sbfv;
|
||||
/**燃动小时费率*/
|
||||
@Excel(name = "燃动小时费率", width = 15)
|
||||
@ApiModelProperty(value = "燃动小时费率")
|
||||
private BigDecimal rdfv;
|
||||
/**辅料小时费率*/
|
||||
@Excel(name = "辅料小时费率", width = 15)
|
||||
@ApiModelProperty(value = "辅料小时费率")
|
||||
private BigDecimal flfv;
|
||||
/**其他小时费率*/
|
||||
@Excel(name = "其他小时费率", width = 15)
|
||||
@ApiModelProperty(value = "其他小时费率")
|
||||
private BigDecimal qtfv;
|
||||
}
|
||||
-311
@@ -1,311 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_zcorc
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_sap_zcorc")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_sap_zcorc对象", description="app_scene_cost_sap_zcorc")
|
||||
public class AppSceneCostSapZcorc implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**ymonth*/
|
||||
@Excel(name = "会计期间", width = 15)
|
||||
@ApiModelProperty(value = "ymonth")
|
||||
private String ymonth;
|
||||
/**layer*/
|
||||
@Excel(name = "层级", width = 15)
|
||||
@ApiModelProperty(value = "layer")
|
||||
private String layer;
|
||||
/**rlayer*/
|
||||
@Excel(name = "参考节点", width = 15)
|
||||
@ApiModelProperty(value = "rlayer")
|
||||
private String rlayer;
|
||||
/**werks*/
|
||||
@Excel(name = "工厂", width = 15)
|
||||
@ApiModelProperty(value = "werks")
|
||||
private String werks;
|
||||
/**matnr*/
|
||||
@Excel(name = "物料", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**psPspPnr*/
|
||||
//@Excel(name = "psPspPnr", width = 15)
|
||||
@ApiModelProperty(value = "psPspPnr")
|
||||
private String psPspPnr;
|
||||
/**aufnr*/
|
||||
@Excel(name = "订单", width = 15)
|
||||
@ApiModelProperty(value = "aufnr")
|
||||
private String aufnr;
|
||||
/**ppsmng*/
|
||||
@Excel(name = "订单数量", width = 15)
|
||||
@ApiModelProperty(value = "ppsmng")
|
||||
private BigDecimal ppsmng;
|
||||
/**rpsmng*/
|
||||
//@Excel(name = "rpsmng", width = 15)
|
||||
@ApiModelProperty(value = "rpsmng")
|
||||
private BigDecimal rpsmng;
|
||||
/**ebeln*/
|
||||
@Excel(name = "采购凭证", width = 15)
|
||||
@ApiModelProperty(value = "ebeln")
|
||||
private String ebeln;
|
||||
/**ebelp*/
|
||||
@Excel(name = "项目", width = 15)
|
||||
@ApiModelProperty(value = "ebelp")
|
||||
private String ebelp;
|
||||
/**psmng*/
|
||||
//@Excel(name = "psmng", width = 15)
|
||||
@ApiModelProperty(value = "psmng")
|
||||
private BigDecimal psmng;
|
||||
/**idnrk*/
|
||||
@Excel(name = "组件", width = 15)
|
||||
@ApiModelProperty(value = "idnrk")
|
||||
private String idnrk;
|
||||
/**kmonth*/
|
||||
@Excel(name = "月", width = 15)
|
||||
@ApiModelProperty(value = "kmonth")
|
||||
private String kmonth;
|
||||
/**menge*/
|
||||
@Excel(name = "数量", width = 15)
|
||||
@ApiModelProperty(value = "menge")
|
||||
private BigDecimal menge;
|
||||
/**unmng*/
|
||||
@Excel(name = "单位数量", width = 15)
|
||||
@ApiModelProperty(value = "unmng")
|
||||
private BigDecimal unmng;
|
||||
/**kst001*/
|
||||
@Excel(name = "材料", width = 15)
|
||||
@ApiModelProperty(value = "kst001")
|
||||
private BigDecimal kst001;
|
||||
/**kst003*/
|
||||
@Excel(name = "人工费用", width = 15)
|
||||
@ApiModelProperty(value = "kst003")
|
||||
private BigDecimal kst003;
|
||||
/**kst005*/
|
||||
@Excel(name = "制造费用", width = 15)
|
||||
@ApiModelProperty(value = "kst005")
|
||||
private BigDecimal kst005;
|
||||
/**kstsum*/
|
||||
@Excel(name = "单位实际成本", width = 15)
|
||||
@ApiModelProperty(value = "kstsum")
|
||||
private BigDecimal kstsum;
|
||||
/**RKST001+ RKST003*/
|
||||
@Excel(name = "实际材料", width = 15)
|
||||
@ApiModelProperty(value = "实际材料")
|
||||
private BigDecimal rkst000;
|
||||
/**rkst100*/
|
||||
@Excel(name = "rkst100", width = 15)
|
||||
@ApiModelProperty(value = "rkst100")
|
||||
private BigDecimal rkst100;
|
||||
/**rkst001*/
|
||||
@Excel(name = "rkst001", width = 15)
|
||||
@ApiModelProperty(value = "rkst001")
|
||||
private BigDecimal rkst001;
|
||||
/**rkst003*/
|
||||
@Excel(name = "rkst003", width = 15)
|
||||
@ApiModelProperty(value = "rkst003")
|
||||
private BigDecimal rkst003;
|
||||
/**rkstlabor*/
|
||||
@Excel(name = "rkstlabor", width = 15)
|
||||
@ApiModelProperty(value = "rkstlabor")
|
||||
private BigDecimal rkstlabor;
|
||||
/**rkst0051*/
|
||||
@Excel(name = "rkst0051", width = 15)
|
||||
@ApiModelProperty(value = "rkst0051")
|
||||
private BigDecimal rkst0051;
|
||||
/**rkst301*/
|
||||
@Excel(name = "rkst301", width = 15)
|
||||
@ApiModelProperty(value = "rkst301")
|
||||
private BigDecimal rkst301;
|
||||
/**rkst302*/
|
||||
@Excel(name = "rkst302", width = 15)
|
||||
@ApiModelProperty(value = "rkst302")
|
||||
private BigDecimal rkst302;
|
||||
/**rkst303*/
|
||||
@Excel(name = "rkst303", width = 15)
|
||||
@ApiModelProperty(value = "rkst303")
|
||||
private BigDecimal rkst303;
|
||||
/**rkst304*/
|
||||
@Excel(name = "rkst304", width = 15)
|
||||
@ApiModelProperty(value = "rkst304")
|
||||
private BigDecimal rkst304;
|
||||
/**bfmenge*/
|
||||
@Excel(name = "bfmenge", width = 15)
|
||||
@ApiModelProperty(value = "bfmenge")
|
||||
private BigDecimal bfmenge;
|
||||
/**rkstwft*/
|
||||
@Excel(name = "rkstwft", width = 15)
|
||||
@ApiModelProperty(value = "rkstwft")
|
||||
private BigDecimal rkstwft;
|
||||
/**rkstwft001*/
|
||||
@Excel(name = "rkstwft001", width = 15)
|
||||
@ApiModelProperty(value = "rkstwft001")
|
||||
private BigDecimal rkstwft001;
|
||||
/**rkstwft003*/
|
||||
@Excel(name = "rkstwft003", width = 15)
|
||||
@ApiModelProperty(value = "rkstwft003")
|
||||
private BigDecimal rkstwft003;
|
||||
/**rkstwft0051*/
|
||||
@Excel(name = "rkstwft0051", width = 15)
|
||||
@ApiModelProperty(value = "rkstwft0051")
|
||||
private BigDecimal rkstwft0051;
|
||||
/**rkstwfp*/
|
||||
@Excel(name = "rkstwfp", width = 15)
|
||||
@ApiModelProperty(value = "rkstwfp")
|
||||
private BigDecimal rkstwfp;
|
||||
/**rkstzfi032*/
|
||||
@Excel(name = "rkstzfi032", width = 15)
|
||||
@ApiModelProperty(value = "rkstzfi032")
|
||||
private BigDecimal rkstzfi032;
|
||||
/**hrkft*/
|
||||
@Excel(name = "hrkft", width = 15)
|
||||
@ApiModelProperty(value = "hrkft")
|
||||
private String hrkft;
|
||||
/**rkst101*/
|
||||
@Excel(name = "rkst101", width = 15)
|
||||
@ApiModelProperty(value = "rkst101")
|
||||
private BigDecimal rkst101;
|
||||
/**posid*/
|
||||
//@Excel(name = "posid", width = 15)
|
||||
@ApiModelProperty(value = "posid")
|
||||
private String posid;
|
||||
/**version*/
|
||||
//@Excel(name = "version", width = 15)
|
||||
@ApiModelProperty(value = "version")
|
||||
private String version;
|
||||
/**auart*/
|
||||
//@Excel(name = "auart", width = 15)
|
||||
@ApiModelProperty(value = "auart")
|
||||
private String auart;
|
||||
/**maktx*/
|
||||
@Excel(name = "物料描述", width = 15)
|
||||
@ApiModelProperty(value = "maktx")
|
||||
private String maktx;
|
||||
/**ckm3*/
|
||||
//@Excel(name = "ckm3", width = 15)
|
||||
@ApiModelProperty(value = "ckm3")
|
||||
private BigDecimal ckm3;
|
||||
/**id*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
/**player*/
|
||||
@Excel(name = "父层级", width = 15)
|
||||
@ApiModelProperty(value = "player")
|
||||
private String player;
|
||||
/**level*/
|
||||
//@Excel(name = "level", width = 15)
|
||||
@ApiModelProperty(value = "level")
|
||||
private Integer level;
|
||||
/**ckm3*/
|
||||
//@Excel(name = "aufnrtotal", width = 15)
|
||||
@ApiModelProperty(value = "aufnrtotal")
|
||||
private BigDecimal aufnrtotal;
|
||||
/**ckm3*/
|
||||
@Excel(name = "订单数量", width = 15)
|
||||
@ApiModelProperty(value = "aufnrmng")
|
||||
private BigDecimal aufnrmng;
|
||||
|
||||
@Excel(name = "领用数量", width = 15)
|
||||
@ApiModelProperty(value = "aufnrmenge")
|
||||
private BigDecimal aufnrmenge;
|
||||
|
||||
@Excel(name = "领用数量", width = 15)
|
||||
@ApiModelProperty(value = "aufnrnum")
|
||||
private BigDecimal aufnrnum;
|
||||
/**ckm3*/
|
||||
@Excel(name = "加权平均数量", width = 15)
|
||||
@ApiModelProperty(value = "matnrnum")
|
||||
private BigDecimal matnrnum;
|
||||
/**ckm3*/
|
||||
@Excel(name = "基于成品的结构用量", width = 15)
|
||||
@ApiModelProperty(value = "pnum")
|
||||
private BigDecimal pnum;
|
||||
|
||||
@Excel(name = "加权平均用量", width = 15)
|
||||
@ApiModelProperty(value = "avgnum")
|
||||
private BigDecimal avgnum;
|
||||
|
||||
//@Excel(name = "备注", width = 15)
|
||||
@ApiModelProperty(value = "totalnum")
|
||||
private BigDecimal totalnum;
|
||||
|
||||
@Excel(name = "领用成本", width = 15,type = 4,numFormat = "0.0000")
|
||||
@ApiModelProperty(value = "avgprice")
|
||||
private BigDecimal avgprice;
|
||||
|
||||
@Excel(name = "加权平均单位成本", width = 15,type = 4,numFormat = "0.0000")
|
||||
@ApiModelProperty(value = "totalprice")
|
||||
private BigDecimal totalprice;
|
||||
|
||||
@Excel(name = "人工工时", width = 15)
|
||||
@ApiModelProperty(value = "rggs")
|
||||
private BigDecimal rggs;
|
||||
|
||||
@Excel(name = "加权平均单位成本", width = 15)
|
||||
@ApiModelProperty(value = "rgfv")
|
||||
private BigDecimal rgfv;
|
||||
|
||||
@Excel(name = "设备工时", width = 15)
|
||||
@ApiModelProperty(value = "sbgs")
|
||||
private BigDecimal sbgs;
|
||||
|
||||
@Excel(name = "设备费率", width = 15)
|
||||
@ApiModelProperty(value = "sbfv")
|
||||
private BigDecimal sbfv;
|
||||
|
||||
@Excel(name = "辅料工时", width = 15)
|
||||
@ApiModelProperty(value = "flgs")
|
||||
private BigDecimal flgs;
|
||||
|
||||
@Excel(name = "辅料费率", width = 15)
|
||||
@ApiModelProperty(value = "flfv")
|
||||
private BigDecimal flfv;
|
||||
|
||||
@Excel(name = "燃动工时", width = 15)
|
||||
@ApiModelProperty(value = "rdgs")
|
||||
private BigDecimal rdgs;
|
||||
|
||||
@Excel(name = "燃动费率", width = 15)
|
||||
@ApiModelProperty(value = "rdfv")
|
||||
private BigDecimal rdfv;
|
||||
|
||||
@Excel(name = "其他工时", width = 15)
|
||||
@ApiModelProperty(value = "qtgs")
|
||||
private BigDecimal qtgs;
|
||||
|
||||
@Excel(name = "其他费率", width = 15)
|
||||
@ApiModelProperty(value = "qtfv")
|
||||
private BigDecimal qtfv;
|
||||
|
||||
|
||||
|
||||
/**ckm3*/
|
||||
@Excel(name = "备注", width = 15)
|
||||
@ApiModelProperty(value = "content")
|
||||
private String content;
|
||||
|
||||
}
|
||||
-307
@@ -1,307 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_ztmmx004
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("app_scene_cost_sap_ztmmx004")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_sap_ztmmx004对象", description="app_scene_cost_sap_ztmmx004")
|
||||
public class AppSceneCostSapZtmmx004 implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**mandt*/
|
||||
@Excel(name = "mandt", width = 15)
|
||||
@ApiModelProperty(value = "mandt")
|
||||
private String mandt;
|
||||
/**zjkyld*/
|
||||
@Excel(name = "zjkyld", width = 15)
|
||||
@ApiModelProperty(value = "zjkyld")
|
||||
private String zjkyld;
|
||||
/**zjkhxm*/
|
||||
@Excel(name = "zjkhxm", width = 15)
|
||||
@ApiModelProperty(value = "zjkhxm")
|
||||
private String zjkhxm;
|
||||
/**zyllx*/
|
||||
@Excel(name = "zyllx", width = 15)
|
||||
@ApiModelProperty(value = "zyllx")
|
||||
private String zyllx;
|
||||
/**rsnum*/
|
||||
@Excel(name = "rsnum", width = 15)
|
||||
@ApiModelProperty(value = "rsnum")
|
||||
private String rsnum;
|
||||
/**rspos*/
|
||||
@Excel(name = "rspos", width = 15)
|
||||
@ApiModelProperty(value = "rspos")
|
||||
private String rspos;
|
||||
/**matnr*/
|
||||
@Excel(name = "matnr", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**werks*/
|
||||
@Excel(name = "werks", width = 15)
|
||||
@ApiModelProperty(value = "werks")
|
||||
private String werks;
|
||||
/**lgort*/
|
||||
@Excel(name = "lgort", width = 15)
|
||||
@ApiModelProperty(value = "lgort")
|
||||
private String lgort;
|
||||
/**charg*/
|
||||
@Excel(name = "charg", width = 15)
|
||||
@ApiModelProperty(value = "charg")
|
||||
private String charg;
|
||||
/**meins*/
|
||||
@Excel(name = "meins", width = 15)
|
||||
@ApiModelProperty(value = "meins")
|
||||
private String meins;
|
||||
/**bdmng*/
|
||||
@Excel(name = "bdmng", width = 15)
|
||||
@ApiModelProperty(value = "bdmng")
|
||||
private BigDecimal bdmng;
|
||||
/**enmng*/
|
||||
@Excel(name = "enmng", width = 15)
|
||||
@ApiModelProperty(value = "enmng")
|
||||
private BigDecimal enmng;
|
||||
/**rsdat*/
|
||||
@Excel(name = "rsdat", width = 15)
|
||||
@ApiModelProperty(value = "rsdat")
|
||||
private String rsdat;
|
||||
/**bdter*/
|
||||
@Excel(name = "bdter", width = 15)
|
||||
@ApiModelProperty(value = "bdter")
|
||||
private String bdter;
|
||||
/**bwart*/
|
||||
@Excel(name = "bwart", width = 15)
|
||||
@ApiModelProperty(value = "bwart")
|
||||
private String bwart;
|
||||
/**sobkz*/
|
||||
@Excel(name = "sobkz", width = 15)
|
||||
@ApiModelProperty(value = "sobkz")
|
||||
private String sobkz;
|
||||
/**ebeln*/
|
||||
@Excel(name = "ebeln", width = 15)
|
||||
@ApiModelProperty(value = "ebeln")
|
||||
private String ebeln;
|
||||
/**ebelp*/
|
||||
@Excel(name = "ebelp", width = 15)
|
||||
@ApiModelProperty(value = "ebelp")
|
||||
private String ebelp;
|
||||
/**aufnr*/
|
||||
@Excel(name = "aufnr", width = 15)
|
||||
@ApiModelProperty(value = "aufnr")
|
||||
private String aufnr;
|
||||
/**refPosnr*/
|
||||
@Excel(name = "refPosnr", width = 15)
|
||||
@ApiModelProperty(value = "refPosnr")
|
||||
private String refPosnr;
|
||||
/**refRsnum*/
|
||||
@Excel(name = "refRsnum", width = 15)
|
||||
@ApiModelProperty(value = "refRsnum")
|
||||
private String refRsnum;
|
||||
/**refRspos*/
|
||||
@Excel(name = "refRspos", width = 15)
|
||||
@ApiModelProperty(value = "refRspos")
|
||||
private String refRspos;
|
||||
/**zzlwt*/
|
||||
@Excel(name = "zzlwt", width = 15)
|
||||
@ApiModelProperty(value = "zzlwt")
|
||||
private String zzlwt;
|
||||
/**zcfdh*/
|
||||
@Excel(name = "zcfdh", width = 15)
|
||||
@ApiModelProperty(value = "zcfdh")
|
||||
private String zcfdh;
|
||||
/**zcfyy*/
|
||||
@Excel(name = "zcfyy", width = 15)
|
||||
@ApiModelProperty(value = "zcfyy")
|
||||
private String zcfyy;
|
||||
/**kostl*/
|
||||
@Excel(name = "kostl", width = 15)
|
||||
@ApiModelProperty(value = "kostl")
|
||||
private String kostl;
|
||||
/**umwrk*/
|
||||
@Excel(name = "umwrk", width = 15)
|
||||
@ApiModelProperty(value = "umwrk")
|
||||
private String umwrk;
|
||||
/**umlgo*/
|
||||
@Excel(name = "umlgo", width = 15)
|
||||
@ApiModelProperty(value = "umlgo")
|
||||
private String umlgo;
|
||||
/**ummat*/
|
||||
@Excel(name = "ummat", width = 15)
|
||||
@ApiModelProperty(value = "ummat")
|
||||
private String ummat;
|
||||
/**umcha*/
|
||||
@Excel(name = "umcha", width = 15)
|
||||
@ApiModelProperty(value = "umcha")
|
||||
private String umcha;
|
||||
/**lifnr*/
|
||||
@Excel(name = "lifnr", width = 15)
|
||||
@ApiModelProperty(value = "lifnr")
|
||||
private String lifnr;
|
||||
/**kunnr*/
|
||||
@Excel(name = "kunnr", width = 15)
|
||||
@ApiModelProperty(value = "kunnr")
|
||||
private String kunnr;
|
||||
/**ernam*/
|
||||
@Excel(name = "ernam", width = 15)
|
||||
@ApiModelProperty(value = "ernam")
|
||||
private String ernam;
|
||||
/**erdat*/
|
||||
@Excel(name = "erdat", width = 15)
|
||||
@ApiModelProperty(value = "erdat")
|
||||
private String erdat;
|
||||
/**erzet*/
|
||||
@Excel(name = "erzet", width = 15)
|
||||
@ApiModelProperty(value = "erzet")
|
||||
private String erzet;
|
||||
/**aenam*/
|
||||
@Excel(name = "aenam", width = 15)
|
||||
@ApiModelProperty(value = "aenam")
|
||||
private String aenam;
|
||||
/**aedat*/
|
||||
@Excel(name = "aedat", width = 15)
|
||||
@ApiModelProperty(value = "aedat")
|
||||
private String aedat;
|
||||
/**aezet*/
|
||||
@Excel(name = "aezet", width = 15)
|
||||
@ApiModelProperty(value = "aezet")
|
||||
private String aezet;
|
||||
/**zconf*/
|
||||
@Excel(name = "zconf", width = 15)
|
||||
@ApiModelProperty(value = "zconf")
|
||||
private String zconf;
|
||||
/**qrnam*/
|
||||
@Excel(name = "qrnam", width = 15)
|
||||
@ApiModelProperty(value = "qrnam")
|
||||
private String qrnam;
|
||||
/**qrdat*/
|
||||
@Excel(name = "qrdat", width = 15)
|
||||
@ApiModelProperty(value = "qrdat")
|
||||
private String qrdat;
|
||||
/**qrzet*/
|
||||
@Excel(name = "qrzet", width = 15)
|
||||
@ApiModelProperty(value = "qrzet")
|
||||
private String qrzet;
|
||||
/**zsfsp*/
|
||||
@Excel(name = "zsfsp", width = 15)
|
||||
@ApiModelProperty(value = "zsfsp")
|
||||
private String zsfsp;
|
||||
/**zspzt*/
|
||||
@Excel(name = "zspzt", width = 15)
|
||||
@ApiModelProperty(value = "zspzt")
|
||||
private String zspzt;
|
||||
/**spnam*/
|
||||
@Excel(name = "spnam", width = 15)
|
||||
@ApiModelProperty(value = "spnam")
|
||||
private String spnam;
|
||||
/**spdat*/
|
||||
@Excel(name = "spdat", width = 15)
|
||||
@ApiModelProperty(value = "spdat")
|
||||
private String spdat;
|
||||
/**spzet*/
|
||||
@Excel(name = "spzet", width = 15)
|
||||
@ApiModelProperty(value = "spzet")
|
||||
private String spzet;
|
||||
/**zsfts*/
|
||||
@Excel(name = "zsfts", width = 15)
|
||||
@ApiModelProperty(value = "zsfts")
|
||||
private String zsfts;
|
||||
/**ztszt*/
|
||||
@Excel(name = "ztszt", width = 15)
|
||||
@ApiModelProperty(value = "ztszt")
|
||||
private String ztszt;
|
||||
/**zzt*/
|
||||
@Excel(name = "zzt", width = 15)
|
||||
@ApiModelProperty(value = "zzt")
|
||||
private String zzt;
|
||||
/**zjjcd*/
|
||||
@Excel(name = "zjjcd", width = 15)
|
||||
@ApiModelProperty(value = "zjjcd")
|
||||
private String zjjcd;
|
||||
/**dele*/
|
||||
@Excel(name = "dele", width = 15)
|
||||
@ApiModelProperty(value = "dele")
|
||||
private String dele;
|
||||
/**zcfsl*/
|
||||
@Excel(name = "zcfsl", width = 15)
|
||||
@ApiModelProperty(value = "zcfsl")
|
||||
private BigDecimal zcfsl;
|
||||
/**z2step*/
|
||||
@Excel(name = "z2step", width = 15)
|
||||
@ApiModelProperty(value = "z2step")
|
||||
private String z2step;
|
||||
/**zretlf*/
|
||||
@Excel(name = "zretlf", width = 15)
|
||||
@ApiModelProperty(value = "zretlf")
|
||||
private String zretlf;
|
||||
/**bdmngO*/
|
||||
@Excel(name = "bdmngO", width = 15)
|
||||
@ApiModelProperty(value = "bdmngO")
|
||||
private BigDecimal bdmngO;
|
||||
/**msgty*/
|
||||
@Excel(name = "msgty", width = 15)
|
||||
@ApiModelProperty(value = "msgty")
|
||||
private String msgty;
|
||||
/**msg*/
|
||||
@Excel(name = "msg", width = 15)
|
||||
@ApiModelProperty(value = "msg")
|
||||
private String msg;
|
||||
/**zllr*/
|
||||
@Excel(name = "zllr", width = 15)
|
||||
@ApiModelProperty(value = "zllr")
|
||||
private String zllr;
|
||||
/**zllyy*/
|
||||
@Excel(name = "zllyy", width = 15)
|
||||
@ApiModelProperty(value = "zllyy")
|
||||
private String zllyy;
|
||||
/**refRsart*/
|
||||
@Excel(name = "refRsart", width = 15)
|
||||
@ApiModelProperty(value = "refRsart")
|
||||
private String refRsart;
|
||||
/**txt40*/
|
||||
@Excel(name = "txt40", width = 15)
|
||||
@ApiModelProperty(value = "txt40")
|
||||
private String txt40;
|
||||
/**ktext*/
|
||||
@Excel(name = "ktext", width = 15)
|
||||
@ApiModelProperty(value = "ktext")
|
||||
private String ktext;
|
||||
/**nodeal*/
|
||||
@Excel(name = "nodeal", width = 15)
|
||||
@ApiModelProperty(value = "nodeal")
|
||||
private String nodeal;
|
||||
/**zyylbA09*/
|
||||
@Excel(name = "zyylbA09", width = 15)
|
||||
@ApiModelProperty(value = "zyylbA09")
|
||||
private String zyylbA09;
|
||||
/**zyylbA10*/
|
||||
@Excel(name = "zyylbA10", width = 15)
|
||||
@ApiModelProperty(value = "zyylbA10")
|
||||
private String zyylbA10;
|
||||
/**zzrbm*/
|
||||
@Excel(name = "zzrbm", width = 15)
|
||||
@ApiModelProperty(value = "zzrbm")
|
||||
private String zzrbm;
|
||||
}
|
||||
-89
@@ -1,89 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_standard_bom
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@TableName("app_scene_cost_standard_bom")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_standard_bom对象", description="app_scene_cost_standard_bom")
|
||||
public class AppSceneCostStandardBom implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**matnr*/
|
||||
@Excel(name = "matnr", width = 15)
|
||||
@ApiModelProperty(value = "matnr")
|
||||
private String matnr;
|
||||
/**versionNumber*/
|
||||
@Excel(name = "versionNumber", width = 15)
|
||||
@ApiModelProperty(value = "versionNumber")
|
||||
private String versionNumber;
|
||||
/**posnr*/
|
||||
@Excel(name = "posnr", width = 15)
|
||||
@ApiModelProperty(value = "posnr")
|
||||
private String posnr;
|
||||
/**werks*/
|
||||
@Excel(name = "werks", width = 15)
|
||||
@ApiModelProperty(value = "werks")
|
||||
private String werks;
|
||||
/**bmeng*/
|
||||
@Excel(name = "bmeng", width = 15)
|
||||
@ApiModelProperty(value = "bmeng")
|
||||
private BigDecimal bmeng;
|
||||
/**idnrk*/
|
||||
@Excel(name = "idnrk", width = 15)
|
||||
@ApiModelProperty(value = "idnrk")
|
||||
private String idnrk;
|
||||
/**menge*/
|
||||
@Excel(name = "menge", width = 15)
|
||||
@ApiModelProperty(value = "menge")
|
||||
private BigDecimal menge;
|
||||
/**oldMaterialGroup*/
|
||||
@Excel(name = "oldMaterialGroup", width = 15)
|
||||
@ApiModelProperty(value = "oldMaterialGroup")
|
||||
private String oldMaterialGroup;
|
||||
/**manufacturingType*/
|
||||
@Excel(name = "manufacturingType", width = 15)
|
||||
@ApiModelProperty(value = "manufacturingType")
|
||||
private String manufacturingType;
|
||||
/**sobsl*/
|
||||
@Excel(name = "sobsl", width = 15)
|
||||
@ApiModelProperty(value = "sobsl")
|
||||
private String sobsl;
|
||||
/**batch*/
|
||||
@Excel(name = "batch", width = 15)
|
||||
@ApiModelProperty(value = "batch")
|
||||
private BigDecimal batch;
|
||||
/**productName*/
|
||||
@Excel(name = "productName", width = 15)
|
||||
@ApiModelProperty(value = "productName")
|
||||
private String productName;
|
||||
/**materialType*/
|
||||
@Excel(name = "materialType", width = 15)
|
||||
@ApiModelProperty(value = "materialType")
|
||||
private String materialType;
|
||||
}
|
||||
-117
@@ -1,117 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_standard_productprocess
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@TableName("app_scene_cost_standard_productprocess")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="app_scene_cost_standard_productprocess对象", description="app_scene_cost_standard_productprocess")
|
||||
public class AppSceneCostStandardProductprocess implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
/**factory*/
|
||||
@Excel(name = "factory", width = 15)
|
||||
@ApiModelProperty(value = "factory")
|
||||
private String factory;
|
||||
/**mainPartNumber*/
|
||||
@Excel(name = "mainPartNumber", width = 15)
|
||||
@ApiModelProperty(value = "mainPartNumber")
|
||||
private String mainPartNumber;
|
||||
/**processRouteNumber*/
|
||||
@Excel(name = "processRouteNumber", width = 15)
|
||||
@ApiModelProperty(value = "processRouteNumber")
|
||||
private String processRouteNumber;
|
||||
/**serialNumber*/
|
||||
@Excel(name = "serialNumber", width = 15)
|
||||
@ApiModelProperty(value = "serialNumber")
|
||||
private String serialNumber;
|
||||
/**processName*/
|
||||
@Excel(name = "processName", width = 15)
|
||||
@ApiModelProperty(value = "processName")
|
||||
private String processName;
|
||||
/**costCenterCode*/
|
||||
@Excel(name = "costCenterCode", width = 15)
|
||||
@ApiModelProperty(value = "costCenterCode")
|
||||
private String costCenterCode;
|
||||
/**prepareHour*/
|
||||
@Excel(name = "prepareHour", width = 15)
|
||||
@ApiModelProperty(value = "prepareHour")
|
||||
private BigDecimal prepareHour;
|
||||
/**laborHour*/
|
||||
@Excel(name = "laborHour", width = 15)
|
||||
@ApiModelProperty(value = "laborHour")
|
||||
private BigDecimal laborHour;
|
||||
/**machineHour*/
|
||||
@Excel(name = "machineHour", width = 15)
|
||||
@ApiModelProperty(value = "machineHour")
|
||||
private BigDecimal machineHour;
|
||||
/**burningHour*/
|
||||
@Excel(name = "burningHour", width = 15)
|
||||
@ApiModelProperty(value = "burningHour")
|
||||
private BigDecimal burningHour;
|
||||
/**auxiliaryHour*/
|
||||
@Excel(name = "auxiliaryHour", width = 15)
|
||||
@ApiModelProperty(value = "auxiliaryHour")
|
||||
private BigDecimal auxiliaryHour;
|
||||
/**otherHour*/
|
||||
@Excel(name = "otherHour", width = 15)
|
||||
@ApiModelProperty(value = "otherHour")
|
||||
private BigDecimal otherHour;
|
||||
/**versionNumber*/
|
||||
@Excel(name = "versionNumber", width = 15)
|
||||
@ApiModelProperty(value = "versionNumber")
|
||||
private String versionNumber;
|
||||
/**jobCode*/
|
||||
@Excel(name = "jobCode", width = 15)
|
||||
@ApiModelProperty(value = "jobCode")
|
||||
private String jobCode;
|
||||
/**laborHourRate*/
|
||||
@Excel(name = "laborHourRate", width = 15)
|
||||
@ApiModelProperty(value = "laborHourRate")
|
||||
private BigDecimal laborHourRate;
|
||||
/**equipHourRate*/
|
||||
@Excel(name = "equipHourRate", width = 15)
|
||||
@ApiModelProperty(value = "equipHourRate")
|
||||
private BigDecimal equipHourRate;
|
||||
/**fuelHourRate*/
|
||||
@Excel(name = "fuelHourRate", width = 15)
|
||||
@ApiModelProperty(value = "fuelHourRate")
|
||||
private BigDecimal fuelHourRate;
|
||||
/**auxiliaryHourRate*/
|
||||
@Excel(name = "auxiliaryHourRate", width = 15)
|
||||
@ApiModelProperty(value = "auxiliaryHourRate")
|
||||
private BigDecimal auxiliaryHourRate;
|
||||
/**otherHourRate*/
|
||||
@Excel(name = "otherHourRate", width = 15)
|
||||
@ApiModelProperty(value = "otherHourRate")
|
||||
private BigDecimal otherHourRate;
|
||||
}
|
||||
+122
-180
@@ -13,7 +13,7 @@ import lombok.experimental.Accessors;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
//import javax.persistence.Column;
|
||||
import javax.persistence.Column;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
@@ -35,215 +35,157 @@ public class AppSceneCostStandardResult implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private java.lang.Long id;
|
||||
/**会计期间*/
|
||||
@Excel(name = "会计期间", width = 15)
|
||||
@ApiModelProperty(value = "会计期间")
|
||||
private java.lang.String ymonth;
|
||||
/**版本号*/
|
||||
@Excel(name = "版本号", width = 15)
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private java.lang.String versionNumber;
|
||||
/**阶段*/
|
||||
@Excel(name = "阶段", width = 15)
|
||||
@ApiModelProperty(value = "阶段")
|
||||
private java.lang.String stage;
|
||||
private java.lang.Integer id;
|
||||
/**工厂*/
|
||||
@Excel(name = "工厂", width = 15)
|
||||
@ApiModelProperty(value = "工厂")
|
||||
private java.lang.String factory;
|
||||
/**物料号*/
|
||||
@Excel(name = "物料号", width = 15)
|
||||
@ApiModelProperty(value = "物料号")
|
||||
private java.lang.String materialNumber;
|
||||
/**父物料号*/
|
||||
@Excel(name = "父物料号", width = 15)
|
||||
@ApiModelProperty(value = "父物料号")
|
||||
private java.lang.String parentMatnr;
|
||||
/**低阶码*/
|
||||
/**阶段*/
|
||||
@Excel(name = "阶段", width = 15)
|
||||
@ApiModelProperty(value = "阶段")
|
||||
private java.lang.String stage;
|
||||
/**版本号*/
|
||||
@Excel(name = "版本号", width = 15)
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private java.lang.String versionNumber;
|
||||
/**层级*/
|
||||
@Excel(name = "层级", width = 15)
|
||||
@ApiModelProperty(value = "层级")
|
||||
private java.lang.String lowOrderCode;
|
||||
/**层级*/
|
||||
@Excel(name = "展开层", width = 15)
|
||||
@ApiModelProperty(value = "展开层")
|
||||
private java.lang.String layer;
|
||||
/**层级*/
|
||||
//@Excel(name = "展开层", width = 15)
|
||||
@ApiModelProperty(value = "父展开层")
|
||||
private java.lang.String player;
|
||||
/**物料号*/
|
||||
@Excel(name = "子物料号", width = 15)
|
||||
@ApiModelProperty(value = "子物料号")
|
||||
private java.lang.String materialNumber;
|
||||
/**物料描述*/
|
||||
@Excel(name = "物料描述", width = 20)
|
||||
@ApiModelProperty(value = "子物料描述")
|
||||
private java.lang.String maktx;
|
||||
/**数量*/
|
||||
@Excel(name = "数量", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "数量")
|
||||
private java.math.BigDecimal menge;
|
||||
/**数量*/
|
||||
@Excel(name = "采购类型", width = 15)
|
||||
@ApiModelProperty(value = "采购类型")
|
||||
private java.lang.String manuType;
|
||||
/**本阶设备成本*/
|
||||
@Excel(name = "机器工时", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "机器工时")
|
||||
private java.math.BigDecimal equipHour;
|
||||
/**本阶人工成本*/
|
||||
@Excel(name = "人工工时", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "人工工时")
|
||||
private java.math.BigDecimal laborHour;
|
||||
/**本阶燃动成本*/
|
||||
@Excel(name = "燃动力工时", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "燃动力工时")
|
||||
private java.math.BigDecimal fuelHour;
|
||||
/**本阶辅料成本*/
|
||||
@Excel(name = "辅料工时", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "辅料工时")
|
||||
private java.math.BigDecimal auxiHour;
|
||||
/**本阶其他成本*/
|
||||
@Excel(name = "其他制费工时", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "其他制费工时")
|
||||
private java.math.BigDecimal otherHour;
|
||||
|
||||
|
||||
/**总其他成本*/
|
||||
@Excel(name = "供应商", width = 20)
|
||||
@ApiModelProperty(value = "供应商")
|
||||
private String supplier;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "供应商描述", width = 20)
|
||||
@ApiModelProperty(value = "供应商描述")
|
||||
private String supplierName;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "采购信息记录", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "采购信息记录")
|
||||
private java.math.BigDecimal purchasePrice;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "正式合同价格", width = 20,type = 4)
|
||||
@ApiModelProperty(value = "正式合同价格")
|
||||
private java.math.BigDecimal contractPrice;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "临时合同估价", width = 20,type = 4)
|
||||
@ApiModelProperty(value = "临时合同估价")
|
||||
private java.math.BigDecimal tempContractPrice;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "单位材料成本", width = 20,type = 4)
|
||||
@ApiModelProperty(value = "采购价格(合计)")
|
||||
private java.math.BigDecimal materialCost;
|
||||
/**总人工成本*/
|
||||
@Excel(name = "单位人工", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "总人工成本")
|
||||
private java.math.BigDecimal laborCost;
|
||||
/**总设备成本*/
|
||||
@Excel(name = "单位折旧", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "总设备成本")
|
||||
private java.math.BigDecimal equipCost;
|
||||
/**总燃动成本*/
|
||||
@Excel(name = "单位燃动力", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "总燃动成本")
|
||||
private java.math.BigDecimal fuelCost;
|
||||
/**总辅料成本*/
|
||||
@Excel(name = "单位辅料", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "总辅料成本")
|
||||
private java.math.BigDecimal auxiliaryCost;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "单位其他费用", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "总其他成本")
|
||||
private java.math.BigDecimal otherCost;
|
||||
/**价格类型*/
|
||||
@Excel(name = "价格类型", width = 15)
|
||||
@ApiModelProperty(value = "价格类型")
|
||||
private java.lang.String pricetype;
|
||||
/**会计期间*/
|
||||
@Excel(name = "会计期间", width = 15)
|
||||
@ApiModelProperty(value = "会计期间")
|
||||
private java.lang.String ymonth;
|
||||
/**总标准成本*/
|
||||
@Excel(name = "单位成本", width = 15,type = 4)
|
||||
@Excel(name = "总标准成本", width = 15)
|
||||
@ApiModelProperty(value = "总标准成本")
|
||||
private java.math.BigDecimal standardCost;
|
||||
/**本阶设备成本*/
|
||||
@Excel(name = "机器工时(累积)", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "机器工时(累积)")
|
||||
private java.math.BigDecimal equipHourTotal;
|
||||
private java.math.BigDecimal totalStandardCost;
|
||||
/**本阶材料成本*/
|
||||
@Excel(name = "本阶材料成本", width = 15)
|
||||
@ApiModelProperty(value = "本阶材料成本")
|
||||
private java.math.BigDecimal materialCostStage;
|
||||
/**本阶人工成本*/
|
||||
@Excel(name = "人工工时(累积)", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "人工工时(累积)")
|
||||
private java.math.BigDecimal laborHourTotal;
|
||||
@Excel(name = "本阶人工成本", width = 15)
|
||||
@ApiModelProperty(value = "本阶人工成本")
|
||||
private java.math.BigDecimal laborCostStage;
|
||||
/**本阶设备成本*/
|
||||
@Excel(name = "本阶设备成本", width = 15)
|
||||
@ApiModelProperty(value = "本阶设备成本")
|
||||
private java.math.BigDecimal equipCostStage;
|
||||
/**本阶燃动成本*/
|
||||
@Excel(name = "燃动力工时(累积)", width = 20,type = 4)
|
||||
@ApiModelProperty(value = "燃动力工时(累积)")
|
||||
private java.math.BigDecimal fuelHourTotal;
|
||||
@Excel(name = "本阶燃动成本", width = 15)
|
||||
@ApiModelProperty(value = "本阶燃动成本")
|
||||
private java.math.BigDecimal burningCostStage;
|
||||
/**本阶辅料成本*/
|
||||
@Excel(name = "辅料工时(累积)", width = 15,type = 4)
|
||||
@ApiModelProperty(value = "辅料工时(累积)")
|
||||
private java.math.BigDecimal auxiHourTotal;
|
||||
@Excel(name = "本阶辅料成本", width = 15)
|
||||
@ApiModelProperty(value = "本阶辅料成本")
|
||||
private java.math.BigDecimal auxiliaryCostStage;
|
||||
/**本阶其他成本*/
|
||||
@Excel(name = "其他制费工时(累积)", width = 20,type = 4)
|
||||
@ApiModelProperty(value = "其他制费工时(累积)")
|
||||
private java.math.BigDecimal otherHourTotal;
|
||||
|
||||
@Excel(name = "结构单位材料成本(累积)", width = 15,type = 4)
|
||||
@Excel(name = "本阶其他成本", width = 15)
|
||||
@ApiModelProperty(value = "本阶其他成本")
|
||||
private java.math.BigDecimal otherCostStage;
|
||||
/**累计材料成本*/
|
||||
@Excel(name = "累计材料成本", width = 15)
|
||||
@ApiModelProperty(value = "累计材料成本")
|
||||
private java.math.BigDecimal materialCostAccumulated;
|
||||
/**累计人工成本*/
|
||||
@Excel(name = "累计人工成本", width = 15)
|
||||
@ApiModelProperty(value = "累计人工成本")
|
||||
private java.math.BigDecimal laborCostAccumulated;
|
||||
/**累计设备成本*/
|
||||
@Excel(name = "累计设备成本", width = 15)
|
||||
@ApiModelProperty(value = "累计设备成本")
|
||||
private java.math.BigDecimal equipCostAccumulated;
|
||||
/**累计燃动成本*/
|
||||
@Excel(name = "累计燃动成本", width = 15)
|
||||
@ApiModelProperty(value = "累计燃动成本")
|
||||
private java.math.BigDecimal burningCostAccumulated;
|
||||
/**累计辅料成本*/
|
||||
@Excel(name = "累计辅料成本", width = 15)
|
||||
@ApiModelProperty(value = "累计辅料成本")
|
||||
private java.math.BigDecimal auxiliaryCostAccumulated;
|
||||
/**累计其他成本*/
|
||||
@Excel(name = "累计其他成本", width = 15)
|
||||
@ApiModelProperty(value = "累计其他成本")
|
||||
private java.math.BigDecimal otherCostAccumulated;
|
||||
/**总材料成本*/
|
||||
@Excel(name = "总材料成本", width = 15)
|
||||
@ApiModelProperty(value = "总材料成本")
|
||||
private java.math.BigDecimal materialCostTotal;
|
||||
/**相对人工成本*/
|
||||
@Excel(name = "结构单位人工(累积)", width = 15)
|
||||
@ApiModelProperty(value = "相对人工成本")
|
||||
/**总人工成本*/
|
||||
@Excel(name = "总人工成本", width = 15)
|
||||
@ApiModelProperty(value = "总人工成本")
|
||||
private java.math.BigDecimal laborCostTotal;
|
||||
/**相对制费成本*/
|
||||
@Excel(name = "结构单位折旧(累积)", width = 15)
|
||||
@ApiModelProperty(value = "相对制费成本")
|
||||
/**总设备成本*/
|
||||
@Excel(name = "总设备成本", width = 15)
|
||||
@ApiModelProperty(value = "总设备成本")
|
||||
private java.math.BigDecimal equipCostTotal;
|
||||
/**相对制费成本*/
|
||||
@Excel(name = "结构单位燃动力(累积)", width = 15)
|
||||
@ApiModelProperty(value = "相对制费成本")
|
||||
private java.math.BigDecimal fuelCostTotal;
|
||||
/**相对制费成本*/
|
||||
@Excel(name = "结构单位辅料(累积)", width = 15)
|
||||
@ApiModelProperty(value = "相对制费成本")
|
||||
/**总燃动成本*/
|
||||
@Excel(name = "总燃动成本", width = 15)
|
||||
@ApiModelProperty(value = "总燃动成本")
|
||||
private java.math.BigDecimal burningCostTotal;
|
||||
/**总辅料成本*/
|
||||
@Excel(name = "总辅料成本", width = 15)
|
||||
@ApiModelProperty(value = "总辅料成本")
|
||||
private java.math.BigDecimal auxiliaryCostTotal;
|
||||
/**相对制费成本*/
|
||||
@Excel(name = "结构单位其他费用(累积)", width = 15)
|
||||
@ApiModelProperty(value = "相对制费成本")
|
||||
/**总其他成本*/
|
||||
@Excel(name = "总其他成本", width = 15)
|
||||
@ApiModelProperty(value = "总其他成本")
|
||||
private java.math.BigDecimal otherCostTotal;
|
||||
/**相对制费成本*/
|
||||
@Excel(name = "单位总成本(累积)", width = 15)
|
||||
@ApiModelProperty(value = "相对制费成本")
|
||||
private java.math.BigDecimal totalStandardCost;
|
||||
// /**总材料成本*/
|
||||
// @Excel(name = "采购价格(合计)", width = 15,type = 4)
|
||||
// @ApiModelProperty(value = "总材料成本")
|
||||
// private java.math.BigDecimal materialCostTotal;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "最新开票金额(单价)", width = 20,type = 4)
|
||||
@ApiModelProperty(value = "最新开票金额(单价)")
|
||||
private java.math.BigDecimal invoicePrice;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "最新开票价格(合计)", width = 20,type = 4)
|
||||
@ApiModelProperty(value = "最新开票价格(合计)")
|
||||
private java.math.BigDecimal invoiceTotal;
|
||||
/**总其他成本*/
|
||||
@Excel(name = "开票金额合计与采购价格合计之差", width = 20,type = 4)
|
||||
@ApiModelProperty(value = "开票金额合计与采购价格合计之差")
|
||||
private java.math.BigDecimal invoiceDiff;
|
||||
/**低阶码*/
|
||||
@Excel(name = "低阶码", width = 15)
|
||||
@ApiModelProperty(value = "低阶码")
|
||||
private java.lang.String lowOrderCode;
|
||||
/**相对用量*/
|
||||
// @Excel(name = "相对用量", width = 15)
|
||||
// @ApiModelProperty(value = "相对用量")
|
||||
// private java.math.BigDecimal relativeDosage;
|
||||
// /**相对材料成本*/
|
||||
// @Excel(name = "相对材料成本", width = 15)
|
||||
// @ApiModelProperty(value = "相对材料成本")
|
||||
// private java.math.BigDecimal materialCostRelative;
|
||||
|
||||
@Excel(name = "相对用量", width = 15)
|
||||
@ApiModelProperty(value = "相对用量")
|
||||
private java.math.BigDecimal relativeDosage;
|
||||
/**相对材料成本*/
|
||||
@Excel(name = "相对材料成本", width = 15)
|
||||
@ApiModelProperty(value = "相对材料成本")
|
||||
private java.math.BigDecimal materialCostRelative;
|
||||
/**相对人工成本*/
|
||||
@Excel(name = "相对人工成本", width = 15)
|
||||
@ApiModelProperty(value = "相对人工成本")
|
||||
private java.math.BigDecimal laborCostRelative;
|
||||
/**相对制费成本*/
|
||||
@Excel(name = "相对制费成本", width = 15)
|
||||
@ApiModelProperty(value = "相对制费成本")
|
||||
private java.math.BigDecimal manufactureCostRelative;
|
||||
/**相对总成本*/
|
||||
// @Excel(name = "相对总成本", width = 15)
|
||||
// @ApiModelProperty(value = "相对总成本")
|
||||
// private java.math.BigDecimal totalCostRelative;
|
||||
@Excel(name = "相对总成本", width = 15)
|
||||
@ApiModelProperty(value = "相对总成本")
|
||||
private java.math.BigDecimal totalCostRelative;
|
||||
/**创建时间*/
|
||||
@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private java.util.Date createdTime;
|
||||
/**价格类型*/
|
||||
//@Excel(name = "价格类型", width = 15)
|
||||
@ApiModelProperty(value = "价格类型")
|
||||
private java.lang.String pricetype;
|
||||
|
||||
|
||||
|
||||
/**物料描述*/
|
||||
@Excel(name = "物料描述", width = 15)
|
||||
@ApiModelProperty(value = "物料描述")
|
||||
private java.lang.String maktx;
|
||||
/**数量*/
|
||||
@Excel(name = "数量", width = 15)
|
||||
@ApiModelProperty(value = "数量")
|
||||
private java.math.BigDecimal menge;
|
||||
/**数量*/
|
||||
@Excel(name = "制造类型", width = 15)
|
||||
@ApiModelProperty(value = "制造类型")
|
||||
private java.lang.String manuType;
|
||||
}
|
||||
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostActual;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_actual
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface AppSceneCostActualMapper extends BaseMapper<AppSceneCostActual> {
|
||||
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
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<AppSceneCostAufnrMatnr> {
|
||||
|
||||
}
|
||||
+7
-7
@@ -17,16 +17,16 @@ import java.util.List;
|
||||
*/
|
||||
public interface AppSceneCostBomRelevancyMapper extends BaseMapper<AppSceneCostBomRelevancy> {
|
||||
@Select("WITH RECURSIVE BOM_Tree AS (\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" +
|
||||
" SELECT matnr, idnrk, menge/bmeng as menge,1.000000 as pmenge,1.000000 as topmenge, 1 AS depth\n" +
|
||||
" FROM app_scene_cost_bom_relevancy\n" +
|
||||
" WHERE matnr = #{parentId} and werks= #{werk}\n" +
|
||||
" WHERE matnr = #{parentId}\n" +
|
||||
" UNION ALL\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" +
|
||||
" 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" +
|
||||
")\n" +
|
||||
"SELECT werks,matnr, idnrk, menge,pmenge,topmenge, depth,layer,player FROM BOM_Tree")
|
||||
List<BomTreeVo> findChildrenByParentId(String parentId,String werk);
|
||||
"SELECT matnr, idnrk, menge,pmenge,topmenge, depth FROM BOM_Tree")
|
||||
List<BomTreeVo> findChildrenByParentId(String parentId);
|
||||
|
||||
|
||||
@Select("${selectSql}")
|
||||
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
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<AppSceneCostInvoice> {
|
||||
|
||||
}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
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<AppSceneCostMiningAufnr> {
|
||||
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
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<AppSceneCostMiningDiff> {
|
||||
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
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<AppSceneCostMiningLabor> {
|
||||
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
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<AppSceneCostMiningMaterial> {
|
||||
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
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<AppSceneCostMiningReason> {
|
||||
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
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<AppSceneCostMiningResult> {
|
||||
|
||||
}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
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<AppSceneCostSapAfru> {
|
||||
|
||||
}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
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<AppSceneCostSapEine> {
|
||||
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
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<AppSceneCostSapEkpo> {
|
||||
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
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<AppSceneCostSapHourRate> {
|
||||
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
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<AppSceneCostSapZcorc> {
|
||||
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
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<AppSceneCostSapZtmmx004> {
|
||||
|
||||
}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
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<AppSceneCostStandardBom> {
|
||||
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
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<AppSceneCostStandardProductprocess> {
|
||||
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostActualMapper">
|
||||
|
||||
</mapper>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostAufnrMatnrMapper">
|
||||
|
||||
</mapper>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostInvoiceMapper">
|
||||
|
||||
</mapper>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zzsmart.qomo.modules.demo..mapper.AppSceneCostMiningAufnrMapper">
|
||||
|
||||
</mapper>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zzsmart.qomo.modules.demo..mapper.AppSceneCostMiningDiffMapper">
|
||||
|
||||
</mapper>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zzsmart.qomo.modules.demo..mapper.AppSceneCostMiningLaborMapper">
|
||||
|
||||
</mapper>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zzsmart.qomo.modules.demo..mapper.AppSceneCostMiningMaterialMapper">
|
||||
|
||||
</mapper>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zzsmart.qomo.modules.demo..mapper.AppSceneCostMiningReasonMapper">
|
||||
|
||||
</mapper>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zzsmart.qomo.modules.demo..mapper.AppSceneCostMiningResultMapper">
|
||||
|
||||
</mapper>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostSapAfruMapper">
|
||||
|
||||
</mapper>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zzsmart.qomo.modules.demo..mapper.AppSceneCostSapEineMapper">
|
||||
|
||||
</mapper>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zzsmart.qomo.modules.demo.com.zzsmart.qomo.kn.cost.manage.mapper.AppSceneCostSapEkpoMapper">
|
||||
|
||||
</mapper>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostSapHourRateMapper">
|
||||
|
||||
</mapper>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostSapZcorcMapper">
|
||||
|
||||
</mapper>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostSapZtmmx004Mapper">
|
||||
|
||||
</mapper>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostStandardBomMapper">
|
||||
|
||||
</mapper>
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zzsmart.qomo.modules.demo.cost.mapper.AppSceneCostStandardProductprocessMapper">
|
||||
|
||||
</mapper>
|
||||
-3380
File diff suppressed because it is too large
Load Diff
+94
-442
@@ -2,7 +2,6 @@ package com.zzsmart.qomo.kn.cost.manage.plugin;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.*;
|
||||
import com.zzsmart.qomo.kn.cost.manage.enums.FeeTypeEnum;
|
||||
import com.zzsmart.qomo.kn.cost.manage.enums.HourOrRateTypeEnum;
|
||||
@@ -14,7 +13,7 @@ import com.zzsmart.qomo.kn.cost.manage.vo.FlowTaskInfoVO;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.TotalResultValue;
|
||||
import com.zzsmart.qomo.plugin.task.api.TaskExecutionContext;
|
||||
import io.swagger.models.auth.In;
|
||||
//import liquibase.pro.packaged.B;
|
||||
import liquibase.pro.packaged.B;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -22,7 +21,6 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import java.math.BigDecimal;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@@ -37,10 +35,6 @@ public class StandardCostService {
|
||||
AppSceneCostBomRelevancyMapper appSceneCostBomRelevancyMapper;
|
||||
@Autowired
|
||||
IAppSceneCostBomRelevancyService costMaterialBomService;
|
||||
@Autowired
|
||||
IAppSceneCostStandardBomService iAppSceneCostStandardBomService;
|
||||
@Autowired
|
||||
IAppSceneCostStandardProductprocessService iAppSceneCostStandardProductprocessService;
|
||||
|
||||
/**
|
||||
* 小时费率
|
||||
@@ -50,8 +44,8 @@ public class StandardCostService {
|
||||
/**
|
||||
* 采购单价
|
||||
*/
|
||||
//@Autowired
|
||||
//IAppSceneCostPurchaseRecordService costPurchaseRecordService;
|
||||
@Autowired
|
||||
IAppSceneCostPurchaseRecordService costPurchaseRecordService;
|
||||
/**
|
||||
* 工序
|
||||
*/
|
||||
@@ -80,50 +74,18 @@ public class StandardCostService {
|
||||
@Autowired
|
||||
private IAppSceneCostMaterialService iAppSceneCostMaterialService;
|
||||
|
||||
@Autowired
|
||||
private IAppSceneCostSapEineService iAppSceneCostSapEineService;
|
||||
|
||||
@Autowired
|
||||
private IAppSceneCostSapEkpoService iAppSceneCostSapEkpoService;
|
||||
|
||||
@Autowired
|
||||
private IAppSceneCostInvoiceService iAppSceneCostInvoiceService;
|
||||
|
||||
@Autowired
|
||||
private IAppSceneCostAufnrMatnrService iAppSceneCostAufnrMatnrService;
|
||||
|
||||
//@Autowired
|
||||
//private IAppSceneCostStandardBomService iAppSceneCostStandardBomService;
|
||||
|
||||
//@Autowired
|
||||
//private IAppSceneCostStandardProductprocessService iAppSceneCostStandardProductprocessService;
|
||||
|
||||
@Autowired
|
||||
private IAppSceneCostBomRelevancyService iAppSceneCostBomRelevancyService;
|
||||
|
||||
@Autowired
|
||||
private IAppSceneCostProductProcessMaintenanceService iAppSceneCostProductProcessMaintenanceService;
|
||||
|
||||
@PostConstruct
|
||||
public void init() {
|
||||
standardCostService = this;
|
||||
standardCostService.appSceneCostBomRelevancyMapper = this.appSceneCostBomRelevancyMapper;
|
||||
standardCostService.appSceneCostCountService = this.appSceneCostCountService;
|
||||
standardCostService.costMaterialBomService = this.costMaterialBomService;
|
||||
//standardCostService.costPurchaseRecordService = this.costPurchaseRecordService;
|
||||
standardCostService.costPurchaseRecordService = this.costPurchaseRecordService;
|
||||
standardCostService.iHourRateService = this.iHourRateService;
|
||||
standardCostService.costMaterialProcessHoursService = this.costMaterialProcessHoursService;
|
||||
standardCostService.iAppSceneCostResultValueService = this.iAppSceneCostResultValueService;
|
||||
standardCostService.iAppSceneCostStandardResultService = this.iAppSceneCostStandardResultService;
|
||||
standardCostService.iAppSceneCostMaterialService = this.iAppSceneCostMaterialService;
|
||||
standardCostService.iAppSceneCostSapEineService=this.iAppSceneCostSapEineService;
|
||||
standardCostService.iAppSceneCostSapEkpoService=this.iAppSceneCostSapEkpoService;
|
||||
standardCostService.iAppSceneCostInvoiceService=this.iAppSceneCostInvoiceService;
|
||||
standardCostService.iAppSceneCostAufnrMatnrService = this.iAppSceneCostAufnrMatnrService;
|
||||
standardCostService.iAppSceneCostBomRelevancyService = this.iAppSceneCostBomRelevancyService;
|
||||
standardCostService.iAppSceneCostStandardBomService=this.iAppSceneCostStandardBomService;
|
||||
standardCostService.iAppSceneCostStandardProductprocessService=this.iAppSceneCostStandardProductprocessService;
|
||||
standardCostService.iAppSceneCostProductProcessMaintenanceService=this.iAppSceneCostProductProcessMaintenanceService;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -153,7 +115,7 @@ public class StandardCostService {
|
||||
String sql = flowTaskInfoVO.getSqlString();
|
||||
log.info("传递过来的SQL语句:" + sql);
|
||||
//获取顶部物料下所有的物料信息并存储到新的表中
|
||||
getAllMaterialBomInfoByTopMaterialCode(flowTaskInfoVO.getWerks(),topMaterialCode, taskType, taskCode, flowInstanceId != null ? Integer.valueOf(flowInstanceId) : null);
|
||||
getAllMaterialBomInfoByTopMaterialCode(topMaterialCode, taskType, taskCode, flowInstanceId != null ? Integer.valueOf(flowInstanceId) : null);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
@@ -168,9 +130,9 @@ public class StandardCostService {
|
||||
* @param taskCode 任务编号
|
||||
* @param flowInstanceId 流程实例id
|
||||
*/
|
||||
public static void getAllMaterialBomInfoByTopMaterialCode(String werks,String topMaterialCode, String taskType, String taskCode, Integer flowInstanceId) {
|
||||
public static void getAllMaterialBomInfoByTopMaterialCode(String topMaterialCode, String taskType, String taskCode, Integer flowInstanceId) {
|
||||
log.info("getAllMaterialBomInfoByTopMaterialCode");
|
||||
List<BomTreeVo> list = standardCostService.costMaterialBomService.queryAllBomInfoByTopMaterialCode(topMaterialCode,werks);
|
||||
List<BomTreeVo> list = standardCostService.costMaterialBomService.queryAllBomInfoByTopMaterialCode(topMaterialCode);
|
||||
List<String> MarterialNoList = new ArrayList<>();
|
||||
if (list != null && list.size() > 0) {
|
||||
MarterialNoList = list.stream().filter(s -> s.getIdnrk() != null).map(BomTreeVo::getIdnrk).collect(Collectors.toList());
|
||||
@@ -187,9 +149,6 @@ public class StandardCostService {
|
||||
if(manuTypeMap.containsKey(material.getIdnrk())){
|
||||
manutype = manuTypeMap.get(material.getIdnrk());
|
||||
}
|
||||
if(material.getPlayer().equals("00000000000000000000")){
|
||||
material.setPlayer("0");
|
||||
}
|
||||
//TODO 物料领用数据
|
||||
BigDecimal num1 = material.getMenge();
|
||||
AppSceneCostResultValue appSceneCostResultValue = AppSceneCostResultValue.builder()
|
||||
@@ -204,9 +163,6 @@ public class StandardCostService {
|
||||
.topnum(material.getTopmenge())
|
||||
.depth(material.depth)
|
||||
.manuType(manutype)
|
||||
.layer(material.layer)
|
||||
.player(material.player)
|
||||
.werks(material.werks)
|
||||
.build();
|
||||
appSceneCostResultValues.add(appSceneCostResultValue);
|
||||
if(material.depth>maxdepth){
|
||||
@@ -214,37 +170,34 @@ public class StandardCostService {
|
||||
}
|
||||
//standardCostService.iAppSceneCostResultValueService.save(appSceneCostResultValue);
|
||||
}
|
||||
// Map<String, Integer> mapIndex = new HashMap<>();
|
||||
// for (int i = 1; i <= maxdepth; ++i) {
|
||||
// //int index=1;
|
||||
// for (AppSceneCostResultValue appSceneCostResultValue : appSceneCostResultValues) {
|
||||
// if (appSceneCostResultValue.getDepth() == i) {
|
||||
// String parentlayer = "";
|
||||
// if (i == 1) {
|
||||
// parentlayer = "0";
|
||||
// } else {
|
||||
// for (AppSceneCostResultValue appSceneCostResultValue1 : appSceneCostResultValues) {
|
||||
// if (appSceneCostResultValue1.getMarterialNo().equals(appSceneCostResultValue.getParentMarterialNo()) && (appSceneCostResultValue1.getDepth() + 1 == appSceneCostResultValue.getDepth())) {
|
||||
// parentlayer = appSceneCostResultValue1.getLayer();
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
Map<String,Integer> mapIndex = new HashMap<>();
|
||||
for (int i=1;i<=maxdepth;++i){
|
||||
//int index=1;
|
||||
// if (mapIndex.containsKey(parentlayer)) {
|
||||
// index = mapIndex.get(parentlayer);
|
||||
// } else {
|
||||
// mapIndex.put(parentlayer, index);
|
||||
// }
|
||||
// String layer = parentlayer + "." + String.valueOf(index);
|
||||
// if(parentlayer.equals("0")){
|
||||
// layer=String.valueOf(index);
|
||||
// }
|
||||
// index++;
|
||||
// mapIndex.put(parentlayer, index);
|
||||
// appSceneCostResultValue.setLayer(layer);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
for (AppSceneCostResultValue appSceneCostResultValue:appSceneCostResultValues){
|
||||
if(appSceneCostResultValue.getDepth()==i){
|
||||
String parentlayer = "";
|
||||
if(i==1){
|
||||
parentlayer="0";
|
||||
}else{
|
||||
for (AppSceneCostResultValue appSceneCostResultValue1:appSceneCostResultValues){
|
||||
if(appSceneCostResultValue1.getMarterialNo().equals(appSceneCostResultValue.getParentMarterialNo())&&(appSceneCostResultValue1.getDepth()+1==appSceneCostResultValue.getDepth())){
|
||||
parentlayer=appSceneCostResultValue1.getLayer();
|
||||
}
|
||||
}
|
||||
}
|
||||
int index = 1;
|
||||
if(mapIndex.containsKey(parentlayer)){
|
||||
index = mapIndex.get(parentlayer);
|
||||
}else{
|
||||
mapIndex.put(parentlayer,index);
|
||||
}
|
||||
String layer = parentlayer+"-"+String.valueOf(index);
|
||||
index++;
|
||||
mapIndex.put(parentlayer,index);
|
||||
appSceneCostResultValue.setLayer(layer);
|
||||
}
|
||||
}
|
||||
}
|
||||
standardCostService.iAppSceneCostResultValueService.saveBatch(appSceneCostResultValues);
|
||||
|
||||
AppSceneCostResultValue appSceneCostResultValue = AppSceneCostResultValue.builder()
|
||||
@@ -258,9 +211,7 @@ public class StandardCostService {
|
||||
.pnum(new BigDecimal(1))
|
||||
.topnum(new BigDecimal(1))
|
||||
.depth(0)
|
||||
.werks(werks)
|
||||
.layer("0")
|
||||
.player("")
|
||||
.manuType("E")
|
||||
.build();
|
||||
standardCostService.iAppSceneCostResultValueService.save(appSceneCostResultValue);
|
||||
@@ -285,40 +236,18 @@ public class StandardCostService {
|
||||
MarterialNoList = list.stream().filter(s -> s.getMarterialNo() != null).map(AppSceneCostResultValue::getMarterialNo).collect(Collectors.toList());
|
||||
}
|
||||
//查询物料的采购价
|
||||
Map<String, AppSceneCostSapEine> purchasePriceMap = standardCostService.iAppSceneCostSapEineService.getPrices(MarterialNoList);
|
||||
//查询物料的临时合同估价
|
||||
Map<String, BigDecimal> ekpoPriceMap = standardCostService.iAppSceneCostSapEkpoService.getPrices(MarterialNoList);
|
||||
//查询物料的临时合同估价
|
||||
Map<String, BigDecimal> invoicePriceMap = standardCostService.iAppSceneCostInvoiceService.getPrices(MarterialNoList);
|
||||
Map<String, BigDecimal> purchasePriceMap = standardCostService.costPurchaseRecordService.getMinCostPurchasePriceByMaterialNo(MarterialNoList);
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
AppSceneCostResultValue appSceneCostResultValue = list.get(i);
|
||||
String marterialNo = appSceneCostResultValue.getMarterialNo();
|
||||
BigDecimal num = appSceneCostResultValue.getTopnum();
|
||||
BigDecimal num = appSceneCostResultValue.getNum();
|
||||
if (marterialNo != null && num != null && (new BigDecimal(num.toString()).compareTo(BigDecimal.ZERO)) != 0) {
|
||||
BigDecimal price = new BigDecimal(0);
|
||||
String price_type = "";
|
||||
String supplier = "";
|
||||
String suppliername = "";
|
||||
BigDecimal ekpo_price = new BigDecimal(0);
|
||||
BigDecimal invoice_price = new BigDecimal(0);
|
||||
if (appSceneCostResultValue.getManuType() != null && (appSceneCostResultValue.getManuType().equals("F") || appSceneCostResultValue.getManuType().equals("F30"))) {
|
||||
if(purchasePriceMap.containsKey(marterialNo)) {
|
||||
price = purchasePriceMap.get(marterialNo).getCnyPrice();
|
||||
supplier = purchasePriceMap.get(marterialNo).getLifnr();
|
||||
suppliername=purchasePriceMap.get(marterialNo).getName1();
|
||||
if(appSceneCostResultValue.getManuType()!=null&&appSceneCostResultValue.getManuType().equals("F")){
|
||||
price = purchasePriceMap.get(marterialNo);
|
||||
price_type = "purchase_record";
|
||||
}
|
||||
if(ekpoPriceMap.containsKey(marterialNo)){
|
||||
ekpo_price = ekpoPriceMap.get(marterialNo);
|
||||
if(price_type.equals("")){
|
||||
price_type = "ekpo_price";
|
||||
price = ekpo_price;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(invoicePriceMap.containsKey(marterialNo)){
|
||||
invoice_price = invoicePriceMap.get(marterialNo);
|
||||
}
|
||||
//purchasePriceMap.get(marterialNo);
|
||||
//if (price == null) {
|
||||
// price = BigDecimal.ZERO;
|
||||
@@ -346,12 +275,6 @@ public class StandardCostService {
|
||||
.manuType(appSceneCostResultValue.getManuType())
|
||||
.depth(appSceneCostResultValue.getDepth())
|
||||
.layer(appSceneCostResultValue.getLayer())
|
||||
.player(appSceneCostResultValue.getPlayer())
|
||||
.supplier(supplier)
|
||||
.supplierName(suppliername)
|
||||
.ekpoPrice(ekpo_price)
|
||||
.invoicePrice(invoice_price)
|
||||
.werks(appSceneCostResultValue.getWerks())
|
||||
.build();
|
||||
standardCostService.iAppSceneCostResultValueService.save(resultValue);
|
||||
}
|
||||
@@ -447,19 +370,14 @@ public class StandardCostService {
|
||||
List<AppSceneCostProductProcessMaintenance> appSceneCostProductProcessMaintenances = processHoursMap.get(appSceneCostResultValue.getMarterialNo());
|
||||
for (AppSceneCostProductProcessMaintenance pm:appSceneCostProductProcessMaintenances){
|
||||
String costcenter = pm.getCostCenterCode();
|
||||
//if(mapHourRate.containsKey(costcenter)){
|
||||
if(mapHourRate.containsKey(costcenter)){
|
||||
AppSceneCostHourRate hourrate = mapHourRate.get(costcenter);
|
||||
// labor+=hourrate.getLaborHourRate().doubleValue()*pm.getLaborHour().doubleValue();
|
||||
// equip+=hourrate.getEquipHourRate().doubleValue()*pm.getMachineHour().doubleValue();
|
||||
// fuel+=hourrate.getFuelHourRate().doubleValue()*pm.getBurningHour().doubleValue();
|
||||
// auxi+=hourrate.getAuxiliaryHourRate().doubleValue()*pm.getAuxiliaryHour().doubleValue();
|
||||
// other+=hourrate.getOtherHourRate().doubleValue()*pm.getOtherHour().doubleValue();
|
||||
labor += pm.getLaborHour().doubleValue();
|
||||
equip += pm.getMachineHour().doubleValue();
|
||||
fuel += pm.getBurningHour().doubleValue();
|
||||
auxi += pm.getAuxiliaryHour().doubleValue();
|
||||
other += pm.getOtherHour().doubleValue();
|
||||
//}
|
||||
labor+=hourrate.getLaborHourRate().doubleValue()*pm.getLaborHour().doubleValue();
|
||||
equip+=hourrate.getEquipHourRate().doubleValue()*pm.getMachineHour().doubleValue();
|
||||
fuel+=hourrate.getFuelHourRate().doubleValue()*pm.getBurningHour().doubleValue();
|
||||
auxi+=hourrate.getAuxiliaryHourRate().doubleValue()*pm.getAuxiliaryHour().doubleValue();
|
||||
other+=hourrate.getOtherHourRate().doubleValue()*pm.getOtherHour().doubleValue();
|
||||
}
|
||||
}
|
||||
}
|
||||
AppSceneCostResultValue resultValue = AppSceneCostResultValue.builder()
|
||||
@@ -483,12 +401,6 @@ public class StandardCostService {
|
||||
.manuType(appSceneCostResultValue.getManuType())
|
||||
.depth(appSceneCostResultValue.getDepth())
|
||||
.layer(appSceneCostResultValue.getLayer())
|
||||
.player(appSceneCostResultValue.getPlayer())
|
||||
.supplierName(appSceneCostResultValue.getSupplierName())
|
||||
.supplier(appSceneCostResultValue.getSupplier())
|
||||
.ekpoPrice(appSceneCostResultValue.getEkpoPrice())
|
||||
.invoicePrice(appSceneCostResultValue.getInvoicePrice())
|
||||
.werks(appSceneCostResultValue.getWerks())
|
||||
.build();
|
||||
standardCostService.iAppSceneCostResultValueService.save(resultValue);
|
||||
}
|
||||
@@ -733,21 +645,11 @@ public class StandardCostService {
|
||||
Collections.reverse(deplist);
|
||||
|
||||
List<AppSceneCostStandardResult> appSceneCostStandardResults=new ArrayList<>();
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMM");
|
||||
|
||||
Set<String> matnrs = new HashSet<>();
|
||||
Set<String> idnrks = new HashSet<>();
|
||||
|
||||
//遍历根物料下所有的物料进行该物料本阶成本和费用类别的统计
|
||||
for (Integer depth : deplist) {
|
||||
List<AppSceneCostResultValue> appSceneCostResultValues = materialNoMap.get(depth);
|
||||
for (AppSceneCostResultValue ascr:appSceneCostResultValues){
|
||||
if(!matnrs.contains(ascr.getParentMarterialNo())){
|
||||
matnrs.add(ascr.getParentMarterialNo());
|
||||
}
|
||||
if(!idnrks.contains(ascr.getMarterialNo())){
|
||||
idnrks.add(ascr.getMarterialNo());
|
||||
}
|
||||
//BigDecimal currentCost = new BigDecimal("0.0");
|
||||
//1.本阶物料成本
|
||||
double materialCost = 0;
|
||||
@@ -774,327 +676,77 @@ public class StandardCostService {
|
||||
//12.本阶制造费(其他制造费用)
|
||||
double otherCost_acc = 0;
|
||||
|
||||
double laborhour = 0;
|
||||
double machinehour = 0;
|
||||
double fuelhour = 0;
|
||||
double auxihour = 0;
|
||||
double otherhour = 0;
|
||||
double laborhourTotal = 0;
|
||||
double machinehourTotal = 0;
|
||||
double fuelhourTotal = 0;
|
||||
double auxihourTotal = 0;
|
||||
double otherhourTotal = 0;
|
||||
double laborcostTotal = 0;
|
||||
double machinecostTotal = 0;
|
||||
double fuelcostTotal = 0;
|
||||
double auxicostTotal = 0;
|
||||
double othercostTotal = 0;
|
||||
if(ascr.getLayer().equals("12")){
|
||||
log.info("12");
|
||||
}
|
||||
|
||||
if(ascr.getManuType().equals("F")){
|
||||
materialCost = ascr.getMaterial().doubleValue() * ascr.getTopnum().doubleValue();
|
||||
materialCost_acc+=materialCost;
|
||||
} else if ((ascr.getManuType().equals("E") || ascr.getManuType().equals("F30"))) {
|
||||
materialCost = ascr.getMaterial().doubleValue()*ascr.getNum().doubleValue();
|
||||
}else if(ascr.getManuType().equals("E")){
|
||||
double labor = ascr.getLabor().doubleValue();
|
||||
double equip = ascr.getEquip().doubleValue();
|
||||
double fuel = ascr.getFuel().doubleValue();
|
||||
double auxi = ascr.getAuxi().doubleValue();
|
||||
double other = ascr.getOther().doubleValue();
|
||||
materialCost = ascr.getMaterial().doubleValue()* ascr.getTopnum().doubleValue();;
|
||||
laborhour = labor * ascr.getTopnum().doubleValue()/60;
|
||||
machinehour = equip * ascr.getTopnum().doubleValue()/60;
|
||||
fuelhour = fuel * ascr.getTopnum().doubleValue()/60;
|
||||
auxihour = auxi * ascr.getTopnum().doubleValue()/60;
|
||||
otherhour = other * ascr.getTopnum().doubleValue()/60;
|
||||
|
||||
laborCost = laborhour*0.82548;
|
||||
equipmentCost = machinehour*1.20312;
|
||||
fuelcost = fuelhour*0.17544;
|
||||
auxicost = auxihour*0.21342;
|
||||
otherCost = otherhour*0.77826;
|
||||
|
||||
|
||||
// if(ascr.getLayer().equals("0-15")){
|
||||
// log.info("Debug");
|
||||
// }
|
||||
laborCost = labor*ascr.getNum().doubleValue();
|
||||
equipmentCost =equip*ascr.getNum().doubleValue();
|
||||
fuelcost = fuel*ascr.getNum().doubleValue();
|
||||
auxicost = auxi*ascr.getNum().doubleValue();
|
||||
otherCost = other*ascr.getNum().doubleValue();
|
||||
|
||||
for (AppSceneCostStandardResult child:appSceneCostStandardResults){
|
||||
String layer = child.getLayer();
|
||||
int index = layer.lastIndexOf(".");
|
||||
String player = "0";
|
||||
if(index!=-1){
|
||||
player = layer.substring(0,index);
|
||||
}
|
||||
if(player.equals(ascr.getLayer())){
|
||||
if((Integer.parseInt(child.getLowOrderCode())==depth+1)&&child.getParentMatnr().equals(ascr.getMarterialNo())){
|
||||
if(child.getManuType().equals("F")){
|
||||
//materialCost_acc += child.getMaterialCostTotal().doubleValue() * ascr.getNum().doubleValue();
|
||||
materialCost_acc += child.getMaterialCostTotal().doubleValue() ;
|
||||
} else if ((child.getManuType().equals("E") || child.getManuType().equals("F30"))) {
|
||||
materialCost_acc += child.getMaterialCostTotal().doubleValue() ;
|
||||
laborhourTotal += child.getLaborHourTotal().doubleValue() ;
|
||||
machinehourTotal += ( child.getEquipHourTotal().doubleValue()) ;
|
||||
fuelhourTotal += ( child.getFuelHourTotal().doubleValue()) ;
|
||||
auxihourTotal += ( child.getAuxiHourTotal().doubleValue()) ;
|
||||
otherhourTotal += (child.getOtherHourTotal().doubleValue()) ;
|
||||
materialCost_acc+=child.getMaterialCostStage().doubleValue()*ascr.getNum().doubleValue();
|
||||
}else if(child.getManuType().equals("E")){
|
||||
materialCost_acc+=child.getMaterialCostStage().doubleValue()*ascr.getNum().doubleValue()+child.getMaterialCostAccumulated().doubleValue()*ascr.getNum().doubleValue();
|
||||
laborCost_acc+=(child.getLaborCostStage().doubleValue()+child.getLaborCostAccumulated().doubleValue())*ascr.getNum().doubleValue();
|
||||
equipmentCost_acc+=(child.getEquipCostStage().doubleValue()+child.getEquipCostAccumulated().doubleValue())*ascr.getNum().doubleValue();
|
||||
fuelcost_acc+=(child.getBurningCostStage().doubleValue()+child.getBurningCostAccumulated().doubleValue())*ascr.getNum().doubleValue();
|
||||
auxicost_acc+=(child.getAuxiliaryCostStage().doubleValue()+child.getAuxiliaryCostAccumulated().doubleValue())*ascr.getNum().doubleValue();
|
||||
otherCost_acc+=(child.getOtherCostStage().doubleValue()+child.getOtherCostAccumulated().doubleValue())*ascr.getNum().doubleValue();
|
||||
}
|
||||
}
|
||||
// if ((Integer.parseInt(child.getLowOrderCode()) == depth + 1) && child.getParentMatnr().equals(ascr.getMarterialNo())) {
|
||||
//
|
||||
// if (child.getManuType().equals("F")) {
|
||||
// materialCost_acc += child.getMaterialCostTotal().doubleValue() * ascr.getNum().doubleValue();
|
||||
// } else if ((child.getManuType().equals("E") || child.getManuType().equals("F30"))) {
|
||||
// materialCost_acc += child.getMaterialCostTotal().doubleValue() * ascr.getNum().doubleValue() ;
|
||||
// laborhourTotal += child.getLaborHourTotal().doubleValue() * ascr.getNum().doubleValue();
|
||||
// machinehourTotal += ( child.getMachineHourTotal().doubleValue()) * ascr.getNum().doubleValue();
|
||||
// fuelhourTotal += ( child.getFuelHourTotal().doubleValue()) * ascr.getNum().doubleValue();
|
||||
// auxihourTotal += ( child.getAuxiHourTotal().doubleValue()) * ascr.getNum().doubleValue();
|
||||
// otherhourTotal += (child.getOtherHourTotal().doubleValue()) * ascr.getNum().doubleValue();
|
||||
// }
|
||||
// }
|
||||
}
|
||||
laborhourTotal+=laborhour;
|
||||
machinehourTotal+=machinehour;
|
||||
fuelhourTotal+=fuelhour;
|
||||
auxihourTotal+=auxihour;
|
||||
otherhourTotal+=otherhour;
|
||||
|
||||
laborcostTotal = laborhourTotal*0.82548;
|
||||
machinecostTotal = machinehourTotal*1.20312;
|
||||
fuelcostTotal = fuelhourTotal*0.17544;
|
||||
auxicostTotal = auxihourTotal*0.21342;
|
||||
othercostTotal = otherhourTotal*0.77826;
|
||||
|
||||
materialCost_acc+=materialCost;
|
||||
}
|
||||
String maktx = "";
|
||||
if(maktxMap.containsKey(ascr.getMarterialNo())){
|
||||
maktx=maktxMap.get(ascr.getMarterialNo());
|
||||
}
|
||||
//if(ascr.getLayer().equals("0")){
|
||||
// materialCost = materialCost_acc;
|
||||
//}
|
||||
double standardCost = materialCost+laborCost+equipmentCost+fuelcost+auxicost+otherCost;
|
||||
double total = materialCost_acc + laborcostTotal + machinecostTotal + fuelcostTotal + auxicostTotal + othercostTotal;
|
||||
AppSceneCostStandardResult appSceneCostStandardResult=AppSceneCostStandardResult.builder()
|
||||
.materialNumber(ascr.getMarterialNo())
|
||||
.parentMatnr(ascr.getParentMarterialNo())
|
||||
.pricetype(ascr.getPriceType())
|
||||
.laborHour(new BigDecimal(laborhour))
|
||||
.equipHour(new BigDecimal(machinehour))
|
||||
.fuelHour(new BigDecimal(fuelhour))
|
||||
.auxiHour(new BigDecimal(auxihour))
|
||||
.otherHour(new BigDecimal(otherhour))
|
||||
.laborCost(new BigDecimal(laborCost))
|
||||
.equipCost(new BigDecimal(equipmentCost))
|
||||
.fuelCost(new BigDecimal(fuelcost))
|
||||
.auxiliaryCost(new BigDecimal(auxicost))
|
||||
.otherCost(new BigDecimal(otherCost))
|
||||
.laborHourTotal(new BigDecimal(laborhourTotal))
|
||||
.equipHourTotal(new BigDecimal(machinehourTotal))
|
||||
.fuelHourTotal(new BigDecimal(fuelhourTotal))
|
||||
.auxiHourTotal(new BigDecimal(auxihourTotal))
|
||||
.otherHourTotal(new BigDecimal(otherhourTotal))
|
||||
.standardCost(new BigDecimal(standardCost))
|
||||
.purchasePrice(new BigDecimal(ascr.getMaterial().doubleValue()))
|
||||
.materialCost(new BigDecimal(materialCost))
|
||||
.supplier(ascr.getSupplier())
|
||||
.supplierName(ascr.getSupplierName())
|
||||
.tempContractPrice(ascr.getEkpoPrice())
|
||||
.invoicePrice(ascr.getInvoicePrice())
|
||||
.invoiceTotal(ascr.getInvoicePrice().multiply(ascr.getTopnum()))
|
||||
.invoiceDiff(ascr.getInvoicePrice().multiply(ascr.getTopnum()).subtract(new BigDecimal(total)))
|
||||
//.materialCostStage(new BigDecimal(materialCost))
|
||||
// .laborCostStage(new BigDecimal(laborCost))
|
||||
// .equipCostStage(new BigDecimal(equipmentCost))
|
||||
// .burningCostStage(new BigDecimal(fuelcost))
|
||||
// .auxiliaryCostStage(new BigDecimal(auxicost))
|
||||
// .otherCostStage(new BigDecimal(otherCost))
|
||||
//.materialCostAccumulated(new BigDecimal(materialCost_acc))
|
||||
// .laborCostAccumulated(new BigDecimal(laborCost_acc))
|
||||
// .equipCostAccumulated(new BigDecimal(equipmentCost_acc))
|
||||
// .burningCostAccumulated(new BigDecimal(fuelcost_acc))
|
||||
// .auxiliaryCostAccumulated(new BigDecimal(auxicost_acc))
|
||||
// .otherCostAccumulated(new BigDecimal(otherCost_acc))
|
||||
.materialCostTotal(new BigDecimal(materialCost_acc))
|
||||
.laborCostTotal(new BigDecimal(laborcostTotal ))
|
||||
.equipCostTotal(new BigDecimal(machinecostTotal ))
|
||||
.fuelCostTotal(new BigDecimal(fuelcostTotal ))
|
||||
.auxiliaryCostTotal(new BigDecimal(auxicostTotal ))
|
||||
.otherCostTotal(new BigDecimal(othercostTotal ))
|
||||
.totalStandardCost(new BigDecimal(total))
|
||||
.materialCostStage(new BigDecimal(materialCost))
|
||||
.laborCostStage(new BigDecimal(laborCost))
|
||||
.equipCostStage(new BigDecimal(equipmentCost))
|
||||
.burningCostStage(new BigDecimal(fuelcost))
|
||||
.auxiliaryCostStage(new BigDecimal(auxicost))
|
||||
.otherCostStage(new BigDecimal(otherCost))
|
||||
.materialCostAccumulated(new BigDecimal(materialCost_acc))
|
||||
.laborCostAccumulated(new BigDecimal(laborCost_acc))
|
||||
.equipCostAccumulated(new BigDecimal(equipmentCost_acc))
|
||||
.burningCostAccumulated(new BigDecimal(fuelcost_acc))
|
||||
.auxiliaryCostAccumulated(new BigDecimal(auxicost_acc))
|
||||
.otherCostAccumulated(new BigDecimal(otherCost_acc))
|
||||
.materialCostTotal(new BigDecimal(materialCost+materialCost_acc))
|
||||
.laborCostTotal(new BigDecimal(laborCost+laborCost_acc))
|
||||
.equipCostTotal(new BigDecimal(equipmentCost+equipmentCost_acc))
|
||||
.burningCostTotal(new BigDecimal(fuelcost+fuelcost_acc))
|
||||
.auxiliaryCostTotal(new BigDecimal(auxicost+auxicost_acc))
|
||||
.otherCostTotal(new BigDecimal(otherCost+otherCost_acc))
|
||||
.totalStandardCost(new BigDecimal(materialCost+laborCost+equipmentCost+fuelcost+auxicost+otherCost+materialCost_acc+laborCost_acc+equipmentCost_acc+fuelcost_acc+auxicost_acc+otherCost_acc))
|
||||
.lowOrderCode(String.valueOf(depth))
|
||||
//.relativeDosage(ascr.getNum())
|
||||
.relativeDosage(ascr.getNum())
|
||||
.createdTime(new Date())
|
||||
.menge(ascr.getTopnum())
|
||||
.menge(ascr.getNum())
|
||||
.manuType(ascr.getManuType())
|
||||
.versionNumber(versionNumber)
|
||||
.stage(stage)
|
||||
.layer(ascr.getLayer())
|
||||
.player(ascr.getPlayer())
|
||||
.pricetype(ascr.getPlayer())
|
||||
.factory(ascr.getWerks())
|
||||
.factory("7100")
|
||||
.maktx(maktx)
|
||||
.ymonth(sdf.format(new Date()))
|
||||
.factory(ascr.getWerks())
|
||||
.build();
|
||||
appSceneCostStandardResults.add(appSceneCostStandardResult);
|
||||
}
|
||||
}
|
||||
Collections.sort(appSceneCostStandardResults, new Comparator<AppSceneCostStandardResult>() {
|
||||
|
||||
public double convertlayertodouble(String layer){
|
||||
String[] array = layer.split("\\.");
|
||||
if(array.length==0){
|
||||
return Double.parseDouble(layer);
|
||||
}else{
|
||||
double value = 0;
|
||||
for(int i=0;i<array.length;++i){
|
||||
value+=Double.parseDouble(array[i])*Math.pow(10.0,-i*3.0);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public int compare(AppSceneCostStandardResult o1, AppSceneCostStandardResult o2) {
|
||||
double d1=convertlayertodouble(o1.getLayer());
|
||||
double d2 = convertlayertodouble(o2.getLayer());
|
||||
if(d1>d2){
|
||||
return 1;
|
||||
}else{
|
||||
return -1;
|
||||
}
|
||||
//return Double.parseDouble(o1.getLayer())-Double.parseDouble(o2.getLayer());
|
||||
}
|
||||
});
|
||||
standardCostService.iAppSceneCostStandardResultService.saveBatch(appSceneCostStandardResults);
|
||||
|
||||
List<String> idnrklist = new ArrayList<>();
|
||||
for (String matnr:idnrks){
|
||||
idnrklist.add(matnr);
|
||||
}
|
||||
QueryWrapper<AppSceneCostMaterial> queryWrapper1=new QueryWrapper<>();
|
||||
queryWrapper1.in("material_number",idnrklist);
|
||||
List<AppSceneCostMaterial> materials=standardCostService.iAppSceneCostMaterialService.list(queryWrapper1);
|
||||
Map<String,AppSceneCostMaterial> mapMaterial=new HashMap<>();
|
||||
for (AppSceneCostMaterial material:materials){
|
||||
if(!mapMaterial.containsKey(material.getMaterialNumber())){
|
||||
mapMaterial.put(material.getMaterialNumber(),material);
|
||||
}
|
||||
}
|
||||
|
||||
List<String> matnrlist = new ArrayList<>();
|
||||
for (String matnr:matnrs){
|
||||
matnrlist.add(matnr);
|
||||
}
|
||||
//保存app_scene_cost_standard_bom
|
||||
QueryWrapper<AppSceneCostBomRelevancy> queryWrapper=new QueryWrapper<>();
|
||||
queryWrapper.in("matnr",matnrlist);
|
||||
List<AppSceneCostBomRelevancy> appSceneCostBomRelevancies=standardCostService.iAppSceneCostBomRelevancyService.list(queryWrapper);
|
||||
List<AppSceneCostStandardBom> standardBoms=new ArrayList<>();
|
||||
for (AppSceneCostBomRelevancy bomRelevancy:appSceneCostBomRelevancies){
|
||||
AppSceneCostStandardBom standardBom=AppSceneCostStandardBom.builder()
|
||||
.matnr(bomRelevancy.getMatnr())
|
||||
.versionNumber(versionNumber)
|
||||
.posnr(bomRelevancy.getPosnr())
|
||||
.werks(bomRelevancy.getWerks())
|
||||
.bmeng(bomRelevancy.getBmeng())
|
||||
.idnrk(bomRelevancy.getIdnrk())
|
||||
.menge(bomRelevancy.getMenge())
|
||||
.oldMaterialGroup("")
|
||||
.manufacturingType("")
|
||||
.sobsl("")
|
||||
.productName("")
|
||||
.materialType("")
|
||||
.build();
|
||||
if(mapMaterial.containsKey(bomRelevancy.getIdnrk())){
|
||||
AppSceneCostMaterial material=mapMaterial.get(bomRelevancy.getIdnrk());
|
||||
standardBom.setOldMaterialGroup(material.getOldMaterialGroup());
|
||||
standardBom.setManufacturingType(material.getManufacturingType());
|
||||
standardBom.setSobsl(material.getSobsl());
|
||||
standardBom.setProductName(material.getProductName());
|
||||
standardBom.setMaterialType(material.getMaterialType());
|
||||
}
|
||||
standardBoms.add(standardBom);
|
||||
}
|
||||
standardCostService.iAppSceneCostStandardBomService.saveBatch(standardBoms);
|
||||
|
||||
List<AppSceneCostHourRate> hourRates=standardCostService.iHourRateService.list();
|
||||
Map<String,AppSceneCostHourRate> hourRateMap=new HashMap<>();
|
||||
for (AppSceneCostHourRate hourRate:hourRates){
|
||||
hourRateMap.put(hourRate.getCostCenterCode(),hourRate);
|
||||
}
|
||||
|
||||
//保存app_scene_cost_standard_productprocess
|
||||
QueryWrapper<AppSceneCostProductProcessMaintenance> queryWrapper2=new QueryWrapper<>();
|
||||
queryWrapper2.in("main_part_number",matnrlist);
|
||||
List<AppSceneCostProductProcessMaintenance> productProcessMaintenances=standardCostService.iAppSceneCostProductProcessMaintenanceService.list(queryWrapper2);
|
||||
List<AppSceneCostStandardProductprocess> standardProductprocesses=new ArrayList<>();
|
||||
for (AppSceneCostProductProcessMaintenance maintenance:productProcessMaintenances){
|
||||
AppSceneCostStandardProductprocess productprocess=AppSceneCostStandardProductprocess.builder()
|
||||
.factory(maintenance.getFactory())
|
||||
.mainPartNumber(maintenance.getMainPartNumber())
|
||||
.processRouteNumber(maintenance.getProcessRouteNumber())
|
||||
.serialNumber(maintenance.getSerialNumber())
|
||||
.processName(maintenance.getProcessName())
|
||||
.costCenterCode(maintenance.getCostCenterCode())
|
||||
.prepareHour(maintenance.getPrepareHour())
|
||||
.laborHour(maintenance.getLaborHour())
|
||||
.machineHour(maintenance.getMachineHour())
|
||||
.burningHour(maintenance.getBurningHour())
|
||||
.auxiliaryHour(maintenance.getAuxiliaryHour())
|
||||
.otherHour(maintenance.getOtherHour())
|
||||
.versionNumber(versionNumber)
|
||||
.build();
|
||||
if(hourRateMap.containsKey(maintenance.getCostCenterCode())){
|
||||
AppSceneCostHourRate hourRate=hourRateMap.get(maintenance.getCostCenterCode());
|
||||
productprocess.setLaborHourRate(hourRate.getLaborHourRate());
|
||||
productprocess.setEquipHourRate(hourRate.getEquipHourRate());
|
||||
productprocess.setFuelHourRate(hourRate.getFuelHourRate());
|
||||
productprocess.setAuxiliaryHourRate(hourRate.getAuxiliaryHourRate());
|
||||
productprocess.setOtherHourRate(hourRate.getOtherHourRate());
|
||||
}
|
||||
standardProductprocesses.add(productprocess);
|
||||
}
|
||||
standardCostService.iAppSceneCostStandardProductprocessService.saveBatch(standardProductprocesses);
|
||||
|
||||
|
||||
//更新标准成本计算状态
|
||||
if(appSceneCostStandardResults.size()>0){
|
||||
AppSceneCostStandardResult appSceneCostStandardResult = appSceneCostStandardResults.get(0);
|
||||
|
||||
QueryWrapper<AppSceneCostAufnrMatnr> wrapper=new QueryWrapper<>();
|
||||
wrapper.eq("matnr",appSceneCostStandardResult.getMaterialNumber());
|
||||
List<AppSceneCostAufnrMatnr> appSceneCostAufnrMatnrs=standardCostService.iAppSceneCostAufnrMatnrService.list(wrapper);
|
||||
|
||||
|
||||
|
||||
AppSceneCostCount appSceneCostCount = standardCostService.appSceneCostCountService.queryByVersion(appSceneCostStandardResult.getVersionNumber());
|
||||
if(appSceneCostCount!=null){
|
||||
appSceneCostCount.setStatus(2);
|
||||
appSceneCostCount.setStandardTotal(appSceneCostStandardResult.getTotalStandardCost());
|
||||
appSceneCostCount.setMaterialCost(appSceneCostStandardResult.getMaterialCostTotal());
|
||||
appSceneCostCount.setLaborCost(appSceneCostStandardResult.getLaborCostTotal());
|
||||
appSceneCostCount.setEquipCost(appSceneCostStandardResult.getEquipCostTotal());
|
||||
appSceneCostCount.setFuelCost(appSceneCostStandardResult.getFuelCostTotal());
|
||||
appSceneCostCount.setAuxiCost(appSceneCostStandardResult.getAuxiliaryCostTotal());
|
||||
appSceneCostCount.setOtherCost(appSceneCostStandardResult.getOtherCostTotal());
|
||||
appSceneCostCount.setLaborHour(appSceneCostStandardResult.getLaborHourTotal());
|
||||
appSceneCostCount.setMachineHour(appSceneCostStandardResult.getEquipHourTotal());
|
||||
appSceneCostCount.setFlowDefinitionId(flowInstanceId);
|
||||
appSceneCostCount.setCreateBy(0);
|
||||
appSceneCostCount.setUpdateBy(0);
|
||||
appSceneCostCount.setUpdateTime(new Date());
|
||||
appSceneCostCount.setAufnr("");
|
||||
appSceneCostCount.setMaktx(appSceneCostStandardResult.getMaktx());
|
||||
if(appSceneCostAufnrMatnrs.size()>0){
|
||||
appSceneCostCount.setAufnr(appSceneCostAufnrMatnrs.get(0).getAufnr());
|
||||
}
|
||||
standardCostService.appSceneCostCountService.updateById(appSceneCostCount);
|
||||
}
|
||||
}
|
||||
|
||||
//3.计算出所有的单个物料的累计标准成本
|
||||
//List<AppSceneCostResultValue> standardCostList = standardCostService.iAppSceneCostResultValueService.getResultValueByTopMaterialNo(topMaterialCode, taskType, String.valueOf(flowInstanceId));
|
||||
//【累计成本】的计算
|
||||
@@ -1332,18 +984,18 @@ public class StandardCostService {
|
||||
// .figureNumber()
|
||||
// .dosage(oldAppSceneCostResultValue.getNum() != null ? oldAppSceneCostResultValue.getNum().doubleValue() : 0).unit(oldAppSceneCostResultValue.getUnit())
|
||||
.materialCostTotal(costDetailJson.getBigDecimal(FeeTypeEnum.MaterialCost.getCode()))
|
||||
//.laborCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.LaborCost.getCode()))
|
||||
//.equipCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.EquipmentFee.getCode()))
|
||||
//.auxiliaryCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.SupplyMaterialFee.getCode()))
|
||||
//.burningCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.DriverFee.getCode()))
|
||||
//.otherCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.OtherFee.getCode()))
|
||||
.laborCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.LaborCost.getCode()))
|
||||
.equipCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.EquipmentFee.getCode()))
|
||||
.auxiliaryCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.SupplyMaterialFee.getCode()))
|
||||
.burningCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.DriverFee.getCode()))
|
||||
.otherCostStage(costDetailJson.getBigDecimal(FeeTypeEnum.OtherFee.getCode()))
|
||||
.totalStandardCost(new BigDecimal(oldAppSceneCostResultValue.getCountValue()))
|
||||
//.materialCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalMaterialCost.getCode()))
|
||||
//.laborCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalLaborCost.getCode()))
|
||||
//.equipCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalEquipmentFee.getCode()))
|
||||
//.auxiliaryCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalSupplyMaterialFee.getCode()))
|
||||
//.burningCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalDriverFee.getCode()))
|
||||
//.otherCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalOtherFee.getCode()))
|
||||
.materialCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalMaterialCost.getCode()))
|
||||
.laborCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalLaborCost.getCode()))
|
||||
.equipCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalEquipmentFee.getCode()))
|
||||
.auxiliaryCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalSupplyMaterialFee.getCode()))
|
||||
.burningCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalDriverFee.getCode()))
|
||||
.otherCostAccumulated(costDetailJson.getBigDecimal(TotalCostEnum.TotalOtherFee.getCode()))
|
||||
.totalStandardCost(costDetailJson.getBigDecimal(TotalCostEnum.TotalStandardCost.getCode()))
|
||||
.lowOrderCode(String.valueOf(oldAppSceneCostResultValue.getDepth()))
|
||||
.createdTime(new Date()).build();
|
||||
|
||||
-204
@@ -1,204 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.plugin.webservice;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
public class RequestSapXmlData600 {
|
||||
|
||||
public static String getOrderState(HashMap map) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:sap-com:document:sap:soap:functions:mc-style\">"
|
||||
|
||||
+ "<soapenv:Header/>"
|
||||
+ "<soapenv:Body>"
|
||||
+ "<urn:ZsapDsj001>"
|
||||
+ "<IsInput>"
|
||||
+ "<Dest><DestId>PLM</DestId><BussTp>ZHA056_IFS003</BussTp><MessId></MessId><BussDoc></BussDoc><Status></Status><MessIdP></MessIdP><MessText></MessText><MessIdOs></MessIdOs><BussDocOs></BussDocOs><StatusOs></StatusOs></Dest>"
|
||||
+ "<Data>"
|
||||
+ "<IWerks>"
|
||||
+ map.get("werks").toString()
|
||||
+ "</IWerks>"
|
||||
+ "<IMatnr>"
|
||||
+ map.get("matnr").toString()
|
||||
+ "</IMatnr>"
|
||||
+ "<IPsPspPnr>"
|
||||
+ map.get("pspnr").toString()
|
||||
+ "</IPsPspPnr>"
|
||||
+ "<DateB>"
|
||||
+ map.get("dateb").toString()
|
||||
+ "</DateB>"
|
||||
+ "<DateE>"
|
||||
+ map.get("datee").toString()
|
||||
+ "</DateE>"
|
||||
+ "<Months>"
|
||||
+ map.get("months").toString()
|
||||
+ "</Months>"
|
||||
+ "</Data>"
|
||||
+ "</IsInput></urn:ZsapDsj001></soapenv:Body></soapenv:Envelope>");
|
||||
|
||||
return sb.toString().replaceAll("null", "");
|
||||
}
|
||||
|
||||
public static String getDSJ002(HashMap map) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
//sb.append("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:sap-com:document:sap:rfc:functions\">"
|
||||
sb.append("<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:urn=\"urn:sap-com:document:sap:rfc:functions\">"
|
||||
+ "<soap:Header/>"
|
||||
+ "<soap:Body>"
|
||||
+ "<urn:ZSAP_DSJ_002>"
|
||||
+ "<IS_INPUT>"
|
||||
+ "<Dest><DEST_ID>DSJ</DEST_ID><BUSS_TP>ZSAP_DSJ_002</BUSS_TP></Dest>"
|
||||
+ "<DATA>"
|
||||
+ "<WERKS>"
|
||||
+ map.get("werks").toString()
|
||||
+ "</WERKS>");
|
||||
//+ "<MATNR><item>");
|
||||
if (!map.get("matnr").toString().equals("")) {
|
||||
sb.append("<MATNR><item><MATNR>"
|
||||
+ map.get("matnr").toString()
|
||||
+ "</MATNR></item></MATNR>");
|
||||
}
|
||||
if (!map.get("zthzq").toString().equals("")) {
|
||||
sb.append("<ZTHZQ><item><ZTHZQ>"
|
||||
+ map.get("zthzq").toString()
|
||||
+ "</ZTHZQ></item></ZTHZQ>");
|
||||
}
|
||||
if (!map.get("matnr_l").toString().equals("")) {
|
||||
sb.append("<MATNR_L><item><MATNR>"
|
||||
+ map.get("matnr_l").toString()
|
||||
+ "</MATNR></item></MATNR_L>");
|
||||
}
|
||||
if (!map.get("zthzq_l").toString().equals("")) {
|
||||
sb.append("<ZTHZQ_L><item><ZTHZQ>"
|
||||
+ map.get("zthzq_l").toString()
|
||||
+ "</ZTHZQ></item></ZTHZQ_L>");
|
||||
}
|
||||
// +"<ZTHZQ>"
|
||||
// +map.get("zthzq").toString()
|
||||
// +"</ZTHZQ>"
|
||||
// +"<MATNR_L>"
|
||||
// +map.get("matnr_l").toString()
|
||||
// +"</MATNR_L>"
|
||||
// +"<ZTHZQ_L>"
|
||||
// +map.get("zthzq_l").toString()
|
||||
// +"</ZTHZQ_L>"
|
||||
sb.append("</DATA>"
|
||||
+ "</IS_INPUT></urn:ZSAP_DSJ_002></soap:Body></soap:Envelope>");
|
||||
|
||||
return sb.toString().replaceAll("null", "");
|
||||
}
|
||||
|
||||
public static String getDSJ003(HashMap map) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
//sb.append("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:sap-com:document:sap:rfc:functions\">"
|
||||
sb.append("<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:urn=\"urn:sap-com:document:sap:rfc:functions\">"
|
||||
+ "<soap:Header/>"
|
||||
+ "<soap:Body>"
|
||||
+ "<urn:ZSAP_DSJ_003>"
|
||||
+ "<IS_INPUT>"
|
||||
+ "<Dest><DEST_ID>DSJ</DEST_ID><BUSS_TP>ZSAP_DSJ_003</BUSS_TP></Dest>"
|
||||
+ "<DATA>"
|
||||
+ "<MATNR>"
|
||||
+ map.get("matnr").toString()
|
||||
+ "</MATNR>"
|
||||
+ "<WERKS><item><WERKS>"
|
||||
+ map.get("werks").toString()
|
||||
+ "</WERKS></item></WERKS>"
|
||||
+ "</DATA>"
|
||||
+ "</IS_INPUT></urn:ZSAP_DSJ_003></soap:Body></soap:Envelope>");
|
||||
|
||||
return sb.toString().replaceAll("null", "");
|
||||
}
|
||||
|
||||
public static String getDSJ004(HashMap map) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
//sb.append("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:sap-com:document:sap:rfc:functions\">"
|
||||
sb.append("<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:urn=\"urn:sap-com:document:sap:rfc:functions\">"
|
||||
+ "<soap:Header/>"
|
||||
+ "<soap:Body>"
|
||||
+ "<urn:ZSAP_DSJ_004>"
|
||||
+ "<IS_INPUT>"
|
||||
+ "<Dest><DEST_ID>DSJ</DEST_ID><BUSS_TP>ZSAP_DSJ_004</BUSS_TP></Dest>"
|
||||
+ "<DATA>"
|
||||
// + "<MATNR><item>"
|
||||
// + map.get("matnr").toString()
|
||||
// + "</MATNR>"
|
||||
+ "<WERKS><item><WERKS>"
|
||||
+ map.get("werks").toString()
|
||||
+ "</WERKS></item></WERKS>");
|
||||
// + "</DATA>"
|
||||
// + "</IS_INPUT></urn:ZSAP_DSJ_004></soapenv:Body></soapenv:Envelope>");
|
||||
if (!map.get("matnr").toString().equals("")) {
|
||||
sb.append("<MATNR><item><MATNR>"
|
||||
+ map.get("matnr").toString()
|
||||
+ "</MATNR></item></MATNR>");
|
||||
}
|
||||
if (!map.get("zthzq").toString().equals("")) {
|
||||
sb.append("<ZZTHZQ><item><ZZTHZQ>"
|
||||
+ map.get("zthzq").toString()
|
||||
+ "</ZZTHZQ></item></ZZTHZQ>");
|
||||
}
|
||||
sb.append("</DATA>"
|
||||
+ "</IS_INPUT></urn:ZSAP_DSJ_004></soap:Body></soap:Envelope>");
|
||||
|
||||
return sb.toString().replaceAll("null", "");
|
||||
}
|
||||
|
||||
public static String getPDM(HashMap map) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:sap-com:document:sap:soap:functions:mc-style\">"
|
||||
//sb.append("<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:urn=\"urn:sap-com:document:sap:rfc:functions\">"
|
||||
+ "<soapenv:Header/>"
|
||||
+ "<soapenv:Body>"
|
||||
+ "<urn:ZeccPdmMm015>"
|
||||
+ "<IBusexid>"
|
||||
+ map.get("matnr").toString()
|
||||
+ "</IBusexid>"
|
||||
+ "<IMatnr>"
|
||||
+ map.get("matnr").toString()
|
||||
+ "</IMatnr>"
|
||||
+ "<IWerks>"
|
||||
+ map.get("werks").toString()
|
||||
+ "</IWerks>"
|
||||
+ "<OLogTab><item><Busexid></Busexid><Msgty></Msgty><Msg></Msg><Resdate></Resdate><Restime></Restime><Resname></Resname></item></OLogTab>"
|
||||
+ "<OPdmTab>"
|
||||
+ "<item><Matnr></Matnr><Maktx></Maktx><Zzggxh></Zzggxh><Zzthzq></Zzthzq><Meins></Meins><Werks></Werks><Lgort></Lgort><Charg></Charg><Sobkz></Sobkz><Pspnr></Pspnr><Posid></Posid><Post1></Post1><Labst></Labst><Prlab></Prlab><Vprsv></Vprsv><Fnetpr></Fnetpr><Xnetpr></Xnetpr><Waers></Waers></item>"
|
||||
+ "</OPdmTab>"
|
||||
+ "</urn:ZeccPdmMm015></soapenv:Body></soapenv:Envelope>");
|
||||
|
||||
return sb.toString().replaceAll("null", "");
|
||||
}
|
||||
|
||||
public static String getOrderState12(HashMap map) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:urn=\"urn:sap-com:document:sap:rfc:functions\">"
|
||||
|
||||
+ "<soap:Header/>"
|
||||
+ "<soap:Body>"
|
||||
+ "<urn:ZSAP_DSJ_005>"
|
||||
+ "<IS_INPUT>"
|
||||
+"<DEST><DEST_ID>PLM</DEST_ID><BUSS_TP>ZHA056_IFS003</BUSS_TP><MESS_ID></MESS_ID><BUSS_DOC></BUSS_DOC><STATUS></STATUS><MESS_ID_P></MESS_ID_P><MESS_TEXT></MESS_TEXT><MESS_ID_OS></MESS_ID_OS><BUSS_DOC_OS></BUSS_DOC_OS><STATUS_OS></STATUS_OS></DEST>"
|
||||
+ "<DATA>"
|
||||
+"<I_WERKS>"
|
||||
+map.get("werks").toString()
|
||||
+"</I_WERKS>"
|
||||
+"<I_MATNR>"
|
||||
+map.get("matnr").toString()
|
||||
+"</I_MATNR>"
|
||||
+"<I_PS_PSP_PNR>"
|
||||
+map.get("pspnr").toString()
|
||||
+"</I_PS_PSP_PNR>"
|
||||
+ "<DATE_B>"
|
||||
+map.get("dateb").toString()
|
||||
+ "</DATE_B>"
|
||||
+ "<DATE_E>"
|
||||
+map.get("datee").toString()
|
||||
+ "</DATE_E>"
|
||||
+ "<MONTHS>"
|
||||
+map.get("months").toString()
|
||||
+ "</MONTHS>"
|
||||
+ "</DATA>"
|
||||
+"</IS_INPUT></urn:ZSAP_DSJ_005></soap:Body></soap:Envelope>");
|
||||
|
||||
return sb.toString().replaceAll("null", "");
|
||||
}
|
||||
}
|
||||
-13
@@ -1,13 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.plugin.webservice;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public interface SAPOrderService {
|
||||
Map<String,Object> getOrderState(HashMap map, String url, String u, String p);
|
||||
Map<String,Object> getPDM(HashMap map, String url, String u, String p);
|
||||
Map<String,Object> getDSJ002(HashMap map, String url, String u, String p);
|
||||
Map<String,Object> getDSJ003(HashMap map, String url, String u, String p);
|
||||
Map<String,Object> getDSJ004(HashMap map, String url, String u, String p);
|
||||
Map<String,Object> getOrderState12(HashMap map, String url, String u, String p);
|
||||
}
|
||||
-576
@@ -1,576 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.plugin.webservice;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
//import com.sun.org.apache.xml.internal.serialize.OutputFormat;
|
||||
//import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
|
||||
import org.apache.commons.httpclient.HttpClient;
|
||||
import org.apache.commons.httpclient.methods.PostMethod;
|
||||
import org.apache.commons.httpclient.methods.RequestEntity;
|
||||
import org.apache.commons.httpclient.methods.StringRequestEntity;
|
||||
import org.dom4j.Attribute;
|
||||
import org.dom4j.DocumentException;
|
||||
import org.dom4j.DocumentHelper;
|
||||
import org.jdom2.Element;
|
||||
import org.w3c.dom.Document;
|
||||
import org.xml.sax.InputSource;
|
||||
|
||||
import javax.xml.parsers.DocumentBuilder;
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
import java.io.StringReader;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class SAPOrderServiceImpl implements SAPOrderService {
|
||||
RequestSapXmlData600 request = new RequestSapXmlData600();
|
||||
|
||||
String url;
|
||||
|
||||
public SAPOrderServiceImpl(String url)
|
||||
{
|
||||
this.url = url;
|
||||
}
|
||||
public SAPOrderServiceImpl(){
|
||||
}
|
||||
|
||||
//全局变量,判断是否输出请求响应报文信息;
|
||||
public static boolean openXmlMessage = false;
|
||||
|
||||
/**
|
||||
* 调用方法,控制是否输出请求响应报文;
|
||||
* true为输出,false为不输出;
|
||||
* @param open
|
||||
*/
|
||||
public void printLog(boolean open)
|
||||
{
|
||||
openXmlMessage = open;
|
||||
}
|
||||
|
||||
public boolean checkPrint(boolean checkinput){
|
||||
return checkinput;
|
||||
}
|
||||
/**
|
||||
* 用户名密码授权访问webservice规范
|
||||
* 新增返回状态标识
|
||||
* @param xml
|
||||
* @param url
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public static String getUPTSoapStreama(String xml,String url) {
|
||||
try {
|
||||
String soap = xml;
|
||||
if (soap == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
HttpClient client = new HttpClient();
|
||||
PostMethod postMethod = new PostMethod(url);
|
||||
// 然后把Soap请求数据添加到PostMethod中
|
||||
RequestEntity requestEntity = new StringRequestEntity(soap, "application/soap+xml", "UTF-8");
|
||||
//设置请求头部,否则可能会报 “no SOAPAction header” 的错误
|
||||
postMethod.setRequestHeader("SOAPAction","");
|
||||
// 设置请求体
|
||||
postMethod.setRequestEntity(requestEntity);
|
||||
int status = client.executeMethod(postMethod);
|
||||
return status+"";
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private static Document parseXmlFile(String in) {
|
||||
try {
|
||||
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
|
||||
DocumentBuilder db = dbf.newDocumentBuilder();
|
||||
InputSource is = new InputSource(new StringReader(in));
|
||||
return db.parse(is);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// public static String xmlFormat(String unformattedXml) {
|
||||
// try {
|
||||
// Document document = parseXmlFile(unformattedXml);
|
||||
// OutputFormat format = new OutputFormat(document);
|
||||
// format.setLineWidth(65);
|
||||
// format.setIndenting(true);
|
||||
// format.setIndent(2);
|
||||
// Writer out = new StringWriter();
|
||||
// XMLSerializer serializer = new XMLSerializer(out, format);
|
||||
// serializer.serialize(document);
|
||||
// return (out.toString() +"").replace("\n","\r\n");
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
// return unformattedXml;
|
||||
// }
|
||||
|
||||
public static String getServerName(String url) {
|
||||
try{
|
||||
return url.substring(url.indexOf("//") + 2, url.indexOf(":",url.indexOf("//")));
|
||||
} catch (Exception e){
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isEmpty(String str) {
|
||||
|
||||
if (str == null || str.trim().isEmpty() || "null".equals(str)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* xml转json
|
||||
* @param element
|
||||
* @param json
|
||||
*/
|
||||
public static void dom4j2Json(org.dom4j.Element element,JSONObject json){
|
||||
//如果是属性
|
||||
for(Object o:element.attributes()){
|
||||
Attribute attr=(Attribute)o;
|
||||
if(!isEmpty(attr.getValue())){
|
||||
json.put("@"+attr.getName(), attr.getValue());
|
||||
}
|
||||
}
|
||||
List<org.dom4j.Element> chdEl=element.elements();
|
||||
if(chdEl.isEmpty()&&!isEmpty(element.getText())){//如果没有子元素,只有一个值
|
||||
json.put(element.getName(), element.getText());
|
||||
}
|
||||
|
||||
for(org.dom4j.Element e:chdEl){//有子元素
|
||||
if(!e.elements().isEmpty()){//子元素也有子元素
|
||||
JSONObject chdjson=new JSONObject();
|
||||
dom4j2Json(e,chdjson);
|
||||
Object o=json.get(e.getName());
|
||||
if(o!=null){
|
||||
JSONArray jsona=null;
|
||||
if(o instanceof JSONObject){//如果此元素已存在,则转为jsonArray
|
||||
JSONObject jsono=(JSONObject)o;
|
||||
json.remove(e.getName());
|
||||
jsona=new JSONArray();
|
||||
jsona.add(jsono);
|
||||
jsona.add(chdjson);
|
||||
}
|
||||
if(o instanceof JSONArray){
|
||||
jsona=(JSONArray)o;
|
||||
jsona.add(chdjson);
|
||||
}
|
||||
json.put(e.getName(), jsona);
|
||||
}else{
|
||||
if(!chdjson.isEmpty()){
|
||||
json.put(e.getName(), chdjson);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}else{//子元素没有子元素
|
||||
for(Object o:element.attributes()){
|
||||
Attribute attr=(Attribute)o;
|
||||
if(!isEmpty(attr.getValue())){
|
||||
json.put("@"+attr.getName(), attr.getValue());
|
||||
}
|
||||
}
|
||||
if(!e.getText().isEmpty()){
|
||||
json.put(e.getName(), e.getText());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public JSONObject xml2Json(String xmlStr) throws DocumentException {
|
||||
org.dom4j.Document doc= DocumentHelper.parseText(xmlStr);
|
||||
JSONObject json=new JSONObject();
|
||||
dom4j2Json(doc.getRootElement(), json);
|
||||
return json;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject getOrderState(HashMap hm, String url, String u, String p) {
|
||||
// TODO Auto-generated method stub
|
||||
String xml = request.getOrderState(hm);
|
||||
//System.out.println(xml);
|
||||
List<HashMap<String, String>> list = null;
|
||||
SoapUtil util = new SoapUtil();
|
||||
|
||||
SoapResult soap = new SoapResult();
|
||||
Element root = null;
|
||||
String status = null,message = "";
|
||||
Map map = null;
|
||||
String[] out = null;
|
||||
//System.out.println("try之前");
|
||||
JSONObject json=new JSONObject();
|
||||
try {
|
||||
// FileUtil.TextToFile(new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss").format(new Date())+"=>105接口:\r\n");
|
||||
//System.out.println("getUPSoapStream开始");
|
||||
String functions="urn:sap-com:document:sap:soap:functions:mc-style:ZSAP_DSJ_005:ZsapDsj005Request";
|
||||
soap = util.getUPSoapStream(xml, url,u,p,functions); //获取返回的报文;
|
||||
//System.out.println("getUPSoapStream结束");
|
||||
//System.out.println("响应报文:"+soap.getContent());
|
||||
|
||||
|
||||
org.dom4j.Document doc= DocumentHelper.parseText(soap.getContent());
|
||||
//JSONObject json=new JSONObject();
|
||||
dom4j2Json(doc.getRootElement(),json);
|
||||
|
||||
//System.out.println(json.toString());
|
||||
//String responsexml=soap.getContent().replace("<?xml version=\"1.0\" encoding=\"utf-8\"?>","");
|
||||
//创建 XMLSerializer对象
|
||||
//XMLSerializer xmlSerializer = new XMLSerializer();
|
||||
//将xml转为json(注:如果是元素的属性,会在json里的key前加一个@标识)
|
||||
//String result = xmlSerializer.read(responsexml).toString();
|
||||
//输出json内容
|
||||
//System.out.println(result);
|
||||
|
||||
//请求sap响应报文写入到日志文档中记录
|
||||
// FileUtil.TextToFile(soap+"\r\n");
|
||||
|
||||
//解析响应报文,状态--返回报文信息
|
||||
//
|
||||
|
||||
// System.out.println("1:"+new Date());
|
||||
// root = util.getRootElement(soap.getContent()); //获取报文xml的根节点
|
||||
// //System.out.println(root);
|
||||
// System.out.println("2:"+new Date());
|
||||
//
|
||||
// System.out.println("3:"+new Date());
|
||||
//
|
||||
// status = util.getKeyParse(root, "MSGTY");
|
||||
//// message = util.getKeyParse(root, "MSGTX");
|
||||
// System.out.println("status__________"+status);
|
||||
// if(status.equals("S")) {
|
||||
// //代表获取成功,获取item里的值
|
||||
// list = util.getListParse(root, "TOUDA", "item");
|
||||
// System.out.println(list.size());
|
||||
// //获取返回的报文列表信息
|
||||
// if(list.size()>0)
|
||||
// {
|
||||
// status = "S";
|
||||
// message = util.getKeyParse(root, "MSGTX");
|
||||
// }else{
|
||||
// status = "E";
|
||||
// message = util.getKeyParse(root, "MSGTX");
|
||||
// System.out.println(message);
|
||||
// }
|
||||
// }else if(status.equals("E") ) {
|
||||
// //代表获取失败,无法关闭的订单
|
||||
// message = util.getKeyParse(root, "MSGTX");
|
||||
// }
|
||||
// System.out.println("4:"+new Date());
|
||||
//message += "\r\n 请求报文:"+xml+"\r\n 响应报文:"+soap;
|
||||
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
// e.printStackTrace();
|
||||
message += " 请求报文解析失败";
|
||||
}
|
||||
|
||||
//输出请求响应报文
|
||||
//if(openXmlMessage)
|
||||
//{
|
||||
// message += "\r\n 请求报文:"+xml+"\r\n 响应报文:"+soap;
|
||||
// }
|
||||
|
||||
//HashMap<String,Object> result = util.sendData(status, message, list, map);
|
||||
|
||||
return json;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject getDSJ002(HashMap hm, String url, String u, String p) {
|
||||
// TODO Auto-generated method stub
|
||||
String xml = request.getDSJ002(hm);
|
||||
System.out.println(xml);
|
||||
List<HashMap<String, String>> list = null;
|
||||
SoapUtil util = new SoapUtil();
|
||||
|
||||
SoapResult soap = new SoapResult();
|
||||
Element root = null;
|
||||
String status = null,message = "";
|
||||
Map map = null;
|
||||
String[] out = null;
|
||||
//System.out.println("try之前");
|
||||
JSONObject json=new JSONObject();
|
||||
try {
|
||||
// FileUtil.TextToFile(new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss").format(new Date())+"=>105接口:\r\n");
|
||||
//System.out.println("getUPSoapStream开始");
|
||||
String functions="urn:sap-com:document:sap:rfc:functions:ZSAP_DSJ_002:ZSAP_DSJ_002Request";
|
||||
soap = util.getUPSoapStream(xml, url,u,p,functions); //获取返回的报文;
|
||||
//System.out.println("getUPSoapStream结束");
|
||||
System.out.println("响应报文:"+soap.getContent());
|
||||
|
||||
|
||||
org.dom4j.Document doc= DocumentHelper.parseText(soap.getContent());
|
||||
//JSONObject json=new JSONObject();
|
||||
dom4j2Json(doc.getRootElement(),json);
|
||||
|
||||
//System.out.println(json.toString());
|
||||
//String responsexml=soap.getContent().replace("<?xml version=\"1.0\" encoding=\"utf-8\"?>","");
|
||||
//创建 XMLSerializer对象
|
||||
//XMLSerializer xmlSerializer = new XMLSerializer();
|
||||
//将xml转为json(注:如果是元素的属性,会在json里的key前加一个@标识)
|
||||
//String result = xmlSerializer.read(responsexml).toString();
|
||||
//输出json内容
|
||||
//System.out.println(result);
|
||||
|
||||
//请求sap响应报文写入到日志文档中记录
|
||||
// FileUtil.TextToFile(soap+"\r\n");
|
||||
|
||||
//解析响应报文,状态--返回报文信息
|
||||
//
|
||||
|
||||
// System.out.println("1:"+new Date());
|
||||
// root = util.getRootElement(soap.getContent()); //获取报文xml的根节点
|
||||
// //System.out.println(root);
|
||||
// System.out.println("2:"+new Date());
|
||||
//
|
||||
// System.out.println("3:"+new Date());
|
||||
//
|
||||
// status = util.getKeyParse(root, "MSGTY");
|
||||
//// message = util.getKeyParse(root, "MSGTX");
|
||||
// System.out.println("status__________"+status);
|
||||
// if(status.equals("S")) {
|
||||
// //代表获取成功,获取item里的值
|
||||
// list = util.getListParse(root, "TOUDA", "item");
|
||||
// System.out.println(list.size());
|
||||
// //获取返回的报文列表信息
|
||||
// if(list.size()>0)
|
||||
// {
|
||||
// status = "S";
|
||||
// message = util.getKeyParse(root, "MSGTX");
|
||||
// }else{
|
||||
// status = "E";
|
||||
// message = util.getKeyParse(root, "MSGTX");
|
||||
// System.out.println(message);
|
||||
// }
|
||||
// }else if(status.equals("E") ) {
|
||||
// //代表获取失败,无法关闭的订单
|
||||
// message = util.getKeyParse(root, "MSGTX");
|
||||
// }
|
||||
// System.out.println("4:"+new Date());
|
||||
//message += "\r\n 请求报文:"+xml+"\r\n 响应报文:"+soap;
|
||||
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
// e.printStackTrace();
|
||||
message += " 请求报文解析失败";
|
||||
}
|
||||
|
||||
//输出请求响应报文
|
||||
//if(openXmlMessage)
|
||||
//{
|
||||
// message += "\r\n 请求报文:"+xml+"\r\n 响应报文:"+soap;
|
||||
// }
|
||||
|
||||
//HashMap<String,Object> result = util.sendData(status, message, list, map);
|
||||
|
||||
return json;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject getPDM(HashMap hm, String url, String u, String p){
|
||||
// TODO Auto-generated method stub
|
||||
String xml = request.getPDM(hm);
|
||||
System.out.println(xml);
|
||||
List<HashMap<String, String>> list = null;
|
||||
SoapUtil util = new SoapUtil();
|
||||
|
||||
SoapResult soap = new SoapResult();
|
||||
Element root = null;
|
||||
String status = null,message = "";
|
||||
Map map = null;
|
||||
String[] out = null;
|
||||
//System.out.println("try之前");
|
||||
JSONObject json=new JSONObject();
|
||||
try {
|
||||
String functions="urn:sap-com:document:sap:soap:functions:mc-style:ZECC_PDM_MM015:ZeccPdmMm015Request";
|
||||
soap = util.getUPSoapStream(xml, url,u,p,functions); //获取返回的报文;
|
||||
System.out.println("响应报文:"+soap.getContent());
|
||||
|
||||
|
||||
org.dom4j.Document doc= DocumentHelper.parseText(soap.getContent());
|
||||
//JSONObject json=new JSONObject();
|
||||
dom4j2Json(doc.getRootElement(),json);
|
||||
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
// e.printStackTrace();
|
||||
message += " 请求报文解析失败";
|
||||
}
|
||||
|
||||
|
||||
|
||||
return json;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject getDSJ003(HashMap hm, String url, String u, String p){
|
||||
// TODO Auto-generated method stub
|
||||
String xml = request.getDSJ003(hm);
|
||||
System.out.println(xml);
|
||||
List<HashMap<String, String>> list = null;
|
||||
SoapUtil util = new SoapUtil();
|
||||
|
||||
SoapResult soap = new SoapResult();
|
||||
Element root = null;
|
||||
String status = null,message = "";
|
||||
Map map = null;
|
||||
String[] out = null;
|
||||
//System.out.println("try之前");
|
||||
JSONObject json=new JSONObject();
|
||||
try {
|
||||
String functions="urn:sap-com:document:sap:rfc:functions:ZSAP_DSJ_003:ZSAP_DSJ_003Request";
|
||||
soap = util.getUPSoapStream(xml, url,u,p,functions); //获取返回的报文;
|
||||
System.out.println("响应报文:"+soap.getContent());
|
||||
|
||||
|
||||
org.dom4j.Document doc= DocumentHelper.parseText(soap.getContent());
|
||||
//JSONObject json=new JSONObject();
|
||||
dom4j2Json(doc.getRootElement(),json);
|
||||
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
// e.printStackTrace();
|
||||
message += " 请求报文解析失败";
|
||||
}
|
||||
|
||||
|
||||
|
||||
return json;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject getDSJ004(HashMap hm, String url, String u, String p){
|
||||
// TODO Auto-generated method stub
|
||||
String xml = request.getDSJ004(hm);
|
||||
System.out.println(xml);
|
||||
List<HashMap<String, String>> list = null;
|
||||
SoapUtil util = new SoapUtil();
|
||||
|
||||
SoapResult soap = new SoapResult();
|
||||
Element root = null;
|
||||
String status = null,message = "";
|
||||
Map map = null;
|
||||
String[] out = null;
|
||||
//System.out.println("try之前");
|
||||
JSONObject json=new JSONObject();
|
||||
try {
|
||||
String functions="urn:sap-com:document:sap:rfc:functions:ZSAP_DSJ_004:ZSAP_DSJ_004Request";
|
||||
soap = util.getUPSoapStream(xml, url,u,p,functions); //获取返回的报文;
|
||||
System.out.println("响应报文:"+soap.getContent());
|
||||
|
||||
|
||||
org.dom4j.Document doc= DocumentHelper.parseText(soap.getContent());
|
||||
//JSONObject json=new JSONObject();
|
||||
dom4j2Json(doc.getRootElement(),json);
|
||||
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
// e.printStackTrace();
|
||||
message += " 请求报文解析失败";
|
||||
}
|
||||
|
||||
|
||||
|
||||
return json;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject getOrderState12(HashMap hm, String url, String u, String p) {
|
||||
// TODO Auto-generated method stub
|
||||
String xml = request.getOrderState12(hm);
|
||||
//System.out.println(xml);
|
||||
List<HashMap<String, String>> list = null;
|
||||
SoapUtil util = new SoapUtil();
|
||||
|
||||
SoapResult soap = new SoapResult();
|
||||
Element root = null;
|
||||
String status = null,message = "";
|
||||
Map map = null;
|
||||
String[] out = null;
|
||||
//System.out.println("try之前");
|
||||
JSONObject json=new JSONObject();
|
||||
try {
|
||||
// FileUtil.TextToFile(new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss").format(new Date())+"=>105接口:\r\n");
|
||||
//System.out.println("getUPSoapStream开始");
|
||||
String functions="urn:sap-com:document:sap:soap:functions:mc-style:ZSAP_DSJ_005:ZsapDsj005Request";
|
||||
soap = util.getUPSoapStream(xml, url,u,p,functions); //获取返回的报文;
|
||||
//System.out.println("getUPSoapStream结束");
|
||||
//System.out.println("响应报文:"+soap.getContent());
|
||||
|
||||
|
||||
org.dom4j.Document doc= DocumentHelper.parseText(soap.getContent());
|
||||
//JSONObject json=new JSONObject();
|
||||
dom4j2Json(doc.getRootElement(),json);
|
||||
|
||||
//System.out.println(json.toString());
|
||||
//String responsexml=soap.getContent().replace("<?xml version=\"1.0\" encoding=\"utf-8\"?>","");
|
||||
//创建 XMLSerializer对象
|
||||
//XMLSerializer xmlSerializer = new XMLSerializer();
|
||||
//将xml转为json(注:如果是元素的属性,会在json里的key前加一个@标识)
|
||||
//String result = xmlSerializer.read(responsexml).toString();
|
||||
//输出json内容
|
||||
//System.out.println(result);
|
||||
|
||||
//请求sap响应报文写入到日志文档中记录
|
||||
// FileUtil.TextToFile(soap+"\r\n");
|
||||
|
||||
//解析响应报文,状态--返回报文信息
|
||||
//
|
||||
|
||||
// System.out.println("1:"+new Date());
|
||||
// root = util.getRootElement(soap.getContent()); //获取报文xml的根节点
|
||||
// //System.out.println(root);
|
||||
// System.out.println("2:"+new Date());
|
||||
//
|
||||
// System.out.println("3:"+new Date());
|
||||
//
|
||||
// status = util.getKeyParse(root, "MSGTY");
|
||||
//// message = util.getKeyParse(root, "MSGTX");
|
||||
// System.out.println("status__________"+status);
|
||||
// if(status.equals("S")) {
|
||||
// //代表获取成功,获取item里的值
|
||||
// list = util.getListParse(root, "TOUDA", "item");
|
||||
// System.out.println(list.size());
|
||||
// //获取返回的报文列表信息
|
||||
// if(list.size()>0)
|
||||
// {
|
||||
// status = "S";
|
||||
// message = util.getKeyParse(root, "MSGTX");
|
||||
// }else{
|
||||
// status = "E";
|
||||
// message = util.getKeyParse(root, "MSGTX");
|
||||
// System.out.println(message);
|
||||
// }
|
||||
// }else if(status.equals("E") ) {
|
||||
// //代表获取失败,无法关闭的订单
|
||||
// message = util.getKeyParse(root, "MSGTX");
|
||||
// }
|
||||
// System.out.println("4:"+new Date());
|
||||
//message += "\r\n 请求报文:"+xml+"\r\n 响应报文:"+soap;
|
||||
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
// e.printStackTrace();
|
||||
message += " 请求报文解析失败";
|
||||
}
|
||||
|
||||
//输出请求响应报文
|
||||
//if(openXmlMessage)
|
||||
//{
|
||||
// message += "\r\n 请求报文:"+xml+"\r\n 响应报文:"+soap;
|
||||
// }
|
||||
|
||||
//HashMap<String,Object> result = util.sendData(status, message, list, map);
|
||||
|
||||
return json;
|
||||
}
|
||||
|
||||
}
|
||||
-23
@@ -1,23 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.plugin.webservice;
|
||||
|
||||
public class SoapResult {
|
||||
private String status;
|
||||
private String content;
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
}
|
||||
|
||||
-452
@@ -1,452 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.plugin.webservice;
|
||||
|
||||
import org.apache.commons.httpclient.DefaultHttpMethodRetryHandler;
|
||||
import org.apache.commons.httpclient.HttpClient;
|
||||
import org.apache.commons.httpclient.UsernamePasswordCredentials;
|
||||
import org.apache.commons.httpclient.auth.AuthScope;
|
||||
import org.apache.commons.httpclient.methods.PostMethod;
|
||||
import org.apache.commons.httpclient.methods.StringRequestEntity;
|
||||
import org.apache.commons.httpclient.params.HttpMethodParams;
|
||||
import org.apache.commons.httpclient.methods.RequestEntity;
|
||||
import org.xml.sax.InputSource;
|
||||
import org.jdom2.Document;
|
||||
import org.jdom2.Element;
|
||||
import org.jdom2.JDOMException;
|
||||
import org.jdom2.input.SAXBuilder;
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
|
||||
public class SoapUtil {
|
||||
|
||||
//public static String responseXml;
|
||||
/**
|
||||
* 获取SOAP的请求头,并替换其中的标志符号为用户输入的城市
|
||||
*
|
||||
* @return 客户将要发送给服务器的SOAP请求
|
||||
*/
|
||||
private static String getSoapRequest() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("<?xml version=\"1.0\" encoding=\"utf-8\"?>"
|
||||
+ "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hror=\"hrorg\">"
|
||||
+ "<soapenv:Header/>"
|
||||
+ "<soapenv:Body>"
|
||||
+ "<hror:getOrgcrude_jidian/>"
|
||||
+ "</soapenv:Body>"
|
||||
+ "</soapenv:Envelope>");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* 测试用户名密码密码授权访问webservice规范
|
||||
* @param wsdl
|
||||
* @param xml
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public SoapResult getUPSoapInputStream(String wsdl, String xml){
|
||||
SoapResult result=new SoapResult();
|
||||
try {
|
||||
String soap = xml;
|
||||
if (soap == null) {
|
||||
return result;
|
||||
}
|
||||
int timeout = 1000000;
|
||||
|
||||
HttpClient client = new HttpClient();
|
||||
PostMethod postMethod = new PostMethod(wsdl);
|
||||
// 设置连接超时
|
||||
client.getHttpConnectionManager().getParams().setConnectionTimeout(timeout);
|
||||
client.getState().setCredentials(AuthScope.ANY,new UsernamePasswordCredentials("SAP_MES", "q123456789"));
|
||||
// 设置读取时间超时
|
||||
client.getHttpConnectionManager().getParams().setSoTimeout(timeout);
|
||||
//设置HTTP请求超时时不进行自动重发
|
||||
client.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(0,false));
|
||||
// 然后把Soap请求数据添加到PostMethod中
|
||||
RequestEntity requestEntity = new StringRequestEntity(soap, "application/soap+xml", "UTF-8");
|
||||
//设置请求头部,否则可能会报 “no SOAPAction header” 的错误
|
||||
postMethod.setRequestHeader("SOAPAction","");
|
||||
// 设置请求体
|
||||
postMethod.setRequestEntity(requestEntity);
|
||||
int status = client.executeMethod(postMethod);
|
||||
// 打印请求状态码
|
||||
//System.out.println("status:" + status);
|
||||
// 获取响应体输入流
|
||||
//String soapResponseInfo = postMethod.getResponseBodyAsString();
|
||||
|
||||
// 获取响应体输入流
|
||||
InputStream is = postMethod.getResponseBodyAsStream();
|
||||
// 获取请求结果字符串
|
||||
//InputStreamReader inputStreamReader = new InputStreamReader(is);
|
||||
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
|
||||
|
||||
String responseLine = "";
|
||||
String soapResponseInfo = "";
|
||||
while((responseLine = bufferedReader.readLine()) != null) {
|
||||
soapResponseInfo = soapResponseInfo + responseLine ;
|
||||
}
|
||||
result.setStatus(status + "");
|
||||
result.setContent(soapResponseInfo);
|
||||
|
||||
return result;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
result.setContent(e.getMessage());
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 用户名密码授权访问webservice规范
|
||||
* 新增返回状态标识
|
||||
* @param xml
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public SoapResult getUPTSoapStream(String xml, String url, String u, String p) {
|
||||
SoapResult result = new SoapResult();
|
||||
try {
|
||||
String soap = xml;
|
||||
if (soap == null) {
|
||||
return result;
|
||||
}
|
||||
int timeout = 1000000;
|
||||
|
||||
HttpClient client = new HttpClient();
|
||||
PostMethod postMethod = new PostMethod(url);
|
||||
// 设置连接超时
|
||||
client.getHttpConnectionManager().getParams().setConnectionTimeout(timeout);
|
||||
client.getState().setCredentials(AuthScope.ANY,new UsernamePasswordCredentials(u,p));
|
||||
//设置HTTP请求超时时不进行自动重发
|
||||
client.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(0,false));
|
||||
// 设置读取时间超时
|
||||
client.getHttpConnectionManager().getParams().setSoTimeout(timeout);
|
||||
// 然后把Soap请求数据添加到PostMethod中
|
||||
RequestEntity requestEntity = new StringRequestEntity(soap, "application/soap+xml", "UTF-8");
|
||||
//设置请求头部,否则可能会报 “no SOAPAction header” 的错误
|
||||
postMethod.setRequestHeader("SOAPAction","");
|
||||
// 设置请求体
|
||||
postMethod.setRequestEntity(requestEntity);
|
||||
int status = client.executeMethod(postMethod);
|
||||
// 打印请求状态码
|
||||
System.out.println("status:" + status);
|
||||
// 获取响应体输入流
|
||||
//String soapResponseInfo = postMethod.getResponseBodyAsString();
|
||||
|
||||
// 获取响应体输入流
|
||||
InputStream is = postMethod.getResponseBodyAsStream();
|
||||
// 获取请求结果字符串
|
||||
//InputStreamReader inputStreamReader = new InputStreamReader(is);
|
||||
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
|
||||
|
||||
String responseLine = "";
|
||||
String soapResponseInfo = "";
|
||||
while((responseLine = bufferedReader.readLine()) != null) {
|
||||
soapResponseInfo = soapResponseInfo + responseLine ;
|
||||
}
|
||||
System.out.println("return:" + new Date());
|
||||
result.setStatus(status +"");
|
||||
result.setContent(soapResponseInfo);
|
||||
return result;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
result.setContent(e.getMessage());
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户名密码授权访问webservice规范
|
||||
* @param xml
|
||||
* @return
|
||||
*/
|
||||
public SoapResult getUPSoapStream(String xml, String url, String u, String p,String functions) {
|
||||
SoapResult result = new SoapResult();
|
||||
try {
|
||||
String soap = xml;
|
||||
if (soap == null) {
|
||||
return result;
|
||||
}
|
||||
int timeout = 1000000;
|
||||
|
||||
HttpClient client = new HttpClient();
|
||||
PostMethod postMethod = new PostMethod(url);
|
||||
// 设置连接超时
|
||||
client.getHttpConnectionManager().getParams().setConnectionTimeout(timeout);
|
||||
client.getState().setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(u, p));
|
||||
//if(!u.equals("")) {
|
||||
// client.getState().setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(u, p));
|
||||
//}
|
||||
//设置HTTP请求超时时不进行自动重发
|
||||
client.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(0,false));
|
||||
|
||||
// 设置读取时间超时
|
||||
client.getHttpConnectionManager().getParams().setSoTimeout(timeout);
|
||||
// 然后把Soap请求数据添加到PostMethod中
|
||||
String contentType="text/xml";
|
||||
//String contentType="application/soap+xml;charset=UTF-8;action=\"urn:sap-com:document:sap:soap:functions:mc-style:ZSAP_DSJ_001:ZsapDsj001Request\"";
|
||||
RequestEntity requestEntity = new StringRequestEntity(soap, contentType, "UTF-8");
|
||||
//设置请求头部,否则可能会报 “no SOAPAction header” 的错误
|
||||
//postMethod.setRequestHeader("SOAPAction","urn:sap-com:document:sap:soap:functions:mc-style:ZSAP_DSJ_001:ZsapDsj001Request");
|
||||
postMethod.setRequestHeader("SOAPAction",functions);
|
||||
|
||||
|
||||
System.out.println(requestEntity);
|
||||
// 设置请求体
|
||||
postMethod.setRequestEntity(requestEntity);
|
||||
int status = client.executeMethod(postMethod);
|
||||
// 打印请求状态码
|
||||
System.out.println("status:" + status);
|
||||
// 获取响应体输入流
|
||||
//String soapResponseInfo = postMethod.getResponseBodyAsString();
|
||||
|
||||
// 获取响应体输入流
|
||||
InputStream is = postMethod.getResponseBodyAsStream();
|
||||
// 获取请求结果字符串
|
||||
//InputStreamReader inputStreamReader = new InputStreamReader(is);
|
||||
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
|
||||
|
||||
String responseLine = "";
|
||||
String soapResponseInfo = "";
|
||||
while((responseLine = bufferedReader.readLine()) != null) {
|
||||
soapResponseInfo = soapResponseInfo + responseLine ;
|
||||
}
|
||||
result.setStatus(status + "");
|
||||
result.setContent(soapResponseInfo);
|
||||
|
||||
return result;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
result.setContent(e.getMessage());
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户把SOAP请求发送给服务器端,并返回服务器点返回的输入流数据
|
||||
* @param wsdl 服务器的wsdl地址
|
||||
* @param xml 请求的报文信息
|
||||
* @return 服务器端返回的输入流,供客户端读取
|
||||
* @throws Exception
|
||||
*/
|
||||
public SoapResult getSoapInputStream(String wsdl, String xml) {
|
||||
SoapResult result = new SoapResult();
|
||||
try {
|
||||
String soap = xml;
|
||||
if (soap == null) {
|
||||
return result;
|
||||
}
|
||||
int timeout = 100000;
|
||||
|
||||
HttpClient client = new HttpClient();
|
||||
PostMethod postMethod = new PostMethod(wsdl);
|
||||
// 设置连接超时
|
||||
client.getHttpConnectionManager().getParams().setConnectionTimeout(timeout);
|
||||
client.getState().setCredentials(AuthScope.ANY,new UsernamePasswordCredentials("ESB_MES","q123456789"));
|
||||
//设置HTTP请求超时时不进行自动重发
|
||||
client.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(0,false));
|
||||
// 设置读取时间超时
|
||||
client.getHttpConnectionManager().getParams().setSoTimeout(timeout);
|
||||
// client.getHttpConnectionManager().getParams().setParameter("Name", "LP02");
|
||||
// 然后把Soap请求数据添加到PostMethod中
|
||||
RequestEntity requestEntity = new StringRequestEntity(soap, "application/soap+xml", "UTF-8");
|
||||
//设置请求头部,否则可能会报 “no SOAPAction header” 的错误
|
||||
postMethod.setRequestHeader("SOAPAction","");
|
||||
// postMethod.setRequestHeader("SOAPAction","");
|
||||
// postMethod.setRequestHeader("Binding","LP02");
|
||||
// 设置请求体
|
||||
postMethod.setRequestEntity(requestEntity);
|
||||
int status = client.executeMethod(postMethod);
|
||||
// 打印请求状态码
|
||||
//System.out.println("status:" + status);
|
||||
// 获取响应体输入流
|
||||
//String soapResponseInfo = postMethod.getResponseBodyAsString();
|
||||
|
||||
// 获取响应体输入流
|
||||
InputStream is = postMethod.getResponseBodyAsStream();
|
||||
// 获取请求结果字符串
|
||||
//InputStreamReader inputStreamReader = new InputStreamReader(is);
|
||||
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
|
||||
|
||||
String responseLine = "";
|
||||
String soapResponseInfo = "";
|
||||
while((responseLine = bufferedReader.readLine()) != null) {
|
||||
soapResponseInfo = soapResponseInfo + responseLine ;
|
||||
}
|
||||
result.setStatus(status+"");
|
||||
result.setContent(soapResponseInfo);
|
||||
return result;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
result.setContent(e.getMessage());
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过返回的报文数据解析获取xml根节点
|
||||
* @param xml 返回的报文xml
|
||||
* @return
|
||||
* @throws JDOMException
|
||||
* @throws IOException
|
||||
*/
|
||||
public Element getRootElement(String xml) throws JDOMException, IOException {
|
||||
StringReader read = new StringReader(xml);
|
||||
//创建新的输入源SAX 解析器将使用 InputSource 对象来确定如何读取 XML 输入
|
||||
InputSource source = new InputSource(read);
|
||||
SAXBuilder builder=new SAXBuilder(false);
|
||||
|
||||
Document doc=builder.build(source);
|
||||
Element root = doc.getRootElement();
|
||||
return root;
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过父节点NODE值,获取子级NODE节点的List<HashMap<>>列表
|
||||
* @param root 解析的文档xml根节点
|
||||
* @param node 父节点标签值
|
||||
* @param slist list子节点标签值
|
||||
* @return List<HashMap<String,String>>
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<HashMap<String,String>> getListParse(Element root,String node,String slist) throws Exception{
|
||||
//返回的列表定义
|
||||
List<HashMap<String,String>> alist = new ArrayList<HashMap<String,String>>();
|
||||
|
||||
//返回指定节点的标签Element值
|
||||
Element name = getNodeElement(root,node);
|
||||
// System.out.println("指定节点的值:"+name);
|
||||
|
||||
List booklist=name.getChildren(slist);
|
||||
// List booklist=name.getChildren();
|
||||
// System.out.println("指定节点的值11:"+booklist);
|
||||
for (Iterator iter = booklist.iterator(); iter.hasNext();) {
|
||||
Element book = (Element) iter.next();
|
||||
List<Element> list = book.getChildren();
|
||||
HashMap<String,String> map = new HashMap<String,String>();
|
||||
for(Element child : list)
|
||||
{
|
||||
map.put(child.getName(), child.getTextTrim());
|
||||
}
|
||||
alist.add(map);
|
||||
}
|
||||
// System.out.println("获取数据行数:"+booklist.size());
|
||||
|
||||
return alist;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过父节点NODE值,获取子级NODE节点的List<HashMap<>>列表
|
||||
* @param root 解析的文档xml根节点
|
||||
* @param node 父节点标签值
|
||||
* @param slist list子节点标签值
|
||||
* @return List<HashMap<String,String>>
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<HashMap<String,String>> getListBarcode(Element root,String node,String slist) throws Exception{
|
||||
//返回的列表定义
|
||||
List<HashMap<String,String>> alist = new ArrayList<HashMap<String,String>>();
|
||||
|
||||
//返回指定节点的标签Element值
|
||||
Element name = getNodeElement(root,node);
|
||||
// System.out.println("指定节点的值:"+name);
|
||||
|
||||
// List booklist=name.getChildren(slist);
|
||||
List booklist=name.getChildren();
|
||||
// System.out.println("指定节点的值11:"+booklist);
|
||||
for (Iterator iter = booklist.iterator(); iter.hasNext();) {
|
||||
Element book = (Element) iter.next();
|
||||
List<Element> list = book.getChildren();
|
||||
HashMap<String,String> map = new HashMap<String,String>();
|
||||
for(Element child : list)
|
||||
{
|
||||
map.put(child.getName(), child.getTextTrim());
|
||||
}
|
||||
alist.add(map);
|
||||
}
|
||||
// System.out.println("获取数据行数:"+booklist.size());
|
||||
|
||||
return alist;
|
||||
}
|
||||
|
||||
public HashMap<String, String> getMapParse(Element root, String node) throws JDOMException, IOException
|
||||
{
|
||||
Element key = getNodeElement(root, node);
|
||||
List<Element> list = key.getChildren();
|
||||
HashMap<String, String> map = new HashMap();
|
||||
for (Element e : list) {
|
||||
map.put(e.getName(), e.getTextTrim());
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过节点名称获取 对应的节点值
|
||||
* @param root 解析的文档xml根节点
|
||||
* @param node 节点的名称
|
||||
* @return
|
||||
* @throws JDOMException
|
||||
* @throws IOException
|
||||
*/
|
||||
public String getKeyParse(Element root,String node) throws JDOMException, IOException{
|
||||
|
||||
//返回指定节点的标签Element值
|
||||
Element key = getNodeElement(root,node);
|
||||
//System.out.println(key);
|
||||
return key.getTextTrim();
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回指定的节点名称的Element标签
|
||||
* @param e 根节点值
|
||||
* @param name 获取的标签值
|
||||
* @return
|
||||
*/
|
||||
//
|
||||
public static Element getNodeElement(Element e,String name){
|
||||
Element ee = null ;
|
||||
if (e != null)
|
||||
{
|
||||
if(e.getName() == name)
|
||||
{
|
||||
ee = e;
|
||||
}else{
|
||||
if (e.getChildren() != null) //如果存在子节点
|
||||
{
|
||||
List<Element> list = e.getChildren();
|
||||
for (Element el : list) //循环输出
|
||||
{
|
||||
if(el.getName()== name) //如果子节点还存在子节点,则递归获取
|
||||
{
|
||||
ee = el;
|
||||
return ee;
|
||||
}
|
||||
else
|
||||
{
|
||||
// System.out.println(el.getName()+", ");
|
||||
ee = getNodeElement(el, name); //将叶子节点值压入map
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return ee;
|
||||
}
|
||||
|
||||
public HashMap<String,Object> sendData(String status, String message, List list, Map map){
|
||||
HashMap<String,Object> send = new HashMap<String,Object>();
|
||||
//请求状态
|
||||
send.put("status", status);
|
||||
//请求状态信息
|
||||
send.put("message", message);
|
||||
//请求的列表数据
|
||||
send.put("list", list);
|
||||
//请求的单列数据
|
||||
send.put("map", map);
|
||||
|
||||
return send;
|
||||
}
|
||||
|
||||
}
|
||||
-38
@@ -1,38 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
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.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.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_actual
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IAppSceneCostActualService extends IService<AppSceneCostActual> {
|
||||
|
||||
public void addCostActual(CostEffectiveVO costEffectiveVO);
|
||||
|
||||
public List<String> queryParent(int resultid, String matnr);
|
||||
|
||||
public List<AppSceneCostSapZcorc> queryMatnrDetail(int resultid, String matnr);
|
||||
|
||||
public List<RealLaborVO> queryAufnrDetail(int resultid, String matnr);
|
||||
|
||||
public List<RealProduceVO> queryProduceDetail(int resultid, String matnr);
|
||||
|
||||
public ModelAndView exportMatnrDetail(int resultid, String matnr);
|
||||
|
||||
public ModelAndView exportLaborDetail(int resultid, String matnr);
|
||||
|
||||
public ModelAndView exportProduceDetail(int resultid, String matnr);
|
||||
}
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostAufnrMatnr;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_aufnr_matnr
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-05
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IAppSceneCostAufnrMatnrService extends IService<AppSceneCostAufnrMatnr> {
|
||||
|
||||
}
|
||||
+1
-1
@@ -25,6 +25,6 @@ public interface IAppSceneCostBomRelevancyService extends IService<AppSceneCostB
|
||||
* @param topMaterialCode
|
||||
* @return
|
||||
*/
|
||||
List<BomTreeVo> queryAllBomInfoByTopMaterialCode(String topMaterialCode,String werks);
|
||||
List<BomTreeVo> queryAllBomInfoByTopMaterialCode(String topMaterialCode);
|
||||
|
||||
}
|
||||
|
||||
-11
@@ -3,13 +3,8 @@ package com.zzsmart.qomo.kn.cost.manage.service;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostCount;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.AppSceneCostCountVO;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.BatchCount;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.MatnrVersionVO;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.MissingComponentVO;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -38,10 +33,4 @@ public interface IAppSceneCostCountService extends IService<AppSceneCostCount> {
|
||||
* @param appSceneCostCount
|
||||
*/
|
||||
void addCostCountTask(AppSceneCostCountVO appSceneCostCount);
|
||||
|
||||
AppSceneCostCount queryByVersion(String version);
|
||||
|
||||
public Result<?> BatchCount(HttpServletRequest request, HttpServletResponse response);
|
||||
|
||||
public MatnrVersionVO getVersionsByMatnr(String werks, String matnr, String ymonth);
|
||||
}
|
||||
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.service;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostInvoice;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapEine;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_invoice
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-22
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IAppSceneCostInvoiceService extends IService<AppSceneCostInvoice> {
|
||||
|
||||
Map<String, BigDecimal> getPrices(List<String> materialNos);
|
||||
}
|
||||
-29
@@ -1,29 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningAufnr;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningMaterial;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_aufnr
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IAppSceneCostMiningAufnrService extends IService<AppSceneCostMiningAufnr> {
|
||||
|
||||
public List<AufnrDiff> getByResultid(int id);
|
||||
|
||||
public List<LaborDiffVO> getLaborByResultid(int id);
|
||||
|
||||
public List<ProduceDiffVO> getProduceByResultid(int id);
|
||||
|
||||
public ModelAndView exportXls2(HttpServletRequest request, AufnrExportVO object, Class<AppSceneCostMiningAufnr> clazz, String title);
|
||||
|
||||
}
|
||||
-19
@@ -1,19 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningDiff;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.MiningDiffTotalVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_diff
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IAppSceneCostMiningDiffService extends IService<AppSceneCostMiningDiff> {
|
||||
|
||||
public List<MiningDiffTotalVO> getMiningDiffTotalById(int id);
|
||||
}
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningLabor;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_labor
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-11-05
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IAppSceneCostMiningLaborService extends IService<AppSceneCostMiningLabor> {
|
||||
|
||||
}
|
||||
-27
@@ -1,27 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningMaterial;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardResult;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.MaterialDiff;
|
||||
import com.zzsmart.qomo.kn.cost.manage.vo.MiningDiffTotalVO;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_material
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IAppSceneCostMiningMaterialService extends IService<AppSceneCostMiningMaterial> {
|
||||
|
||||
public List<MaterialDiff> getByResultid(int id);
|
||||
|
||||
public ModelAndView exportXls2(HttpServletRequest request, AppSceneCostMiningMaterial object, Class<AppSceneCostMiningMaterial> clazz, String title);
|
||||
|
||||
//public ModelAndView exportMaterialDiffXls(HttpServletRequest request, AppSceneCostMiningMaterial object, Class<AppSceneCostMiningMaterial> clazz, String title);
|
||||
}
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostMiningReason;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_reason
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IAppSceneCostMiningReasonService extends IService<AppSceneCostMiningReason> {
|
||||
|
||||
}
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
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.vo.MatnrVersionVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_mining_result
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IAppSceneCostMiningResultService extends IService<AppSceneCostMiningResult> {
|
||||
|
||||
|
||||
}
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapAfru;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_afru
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IAppSceneCostSapAfruService extends IService<AppSceneCostSapAfru> {
|
||||
|
||||
}
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapEine;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_eine
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-21
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IAppSceneCostSapEineService extends IService<AppSceneCostSapEine> {
|
||||
|
||||
Map<String, AppSceneCostSapEine> getPrices(List<String> materialNos);
|
||||
}
|
||||
-21
@@ -1,21 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.service;
|
||||
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapEine;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapEkpo;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_ekpo
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-09-22
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IAppSceneCostSapEkpoService extends IService<AppSceneCostSapEkpo> {
|
||||
|
||||
Map<String, BigDecimal> getPrices(List<String> materialNos);
|
||||
|
||||
}
|
||||
-14
@@ -1,14 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapHourRate;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_hour_rate
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IAppSceneCostSapHourRateService extends IService<AppSceneCostSapHourRate> {
|
||||
|
||||
}
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZcorc;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_zcorc
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IAppSceneCostSapZcorcService extends IService<AppSceneCostSapZcorc> {
|
||||
|
||||
}
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostSapZtmmx004;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_sap_ztmmx004
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IAppSceneCostSapZtmmx004Service extends IService<AppSceneCostSapZtmmx004> {
|
||||
|
||||
}
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
package com.zzsmart.qomo.kn.cost.manage.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.zzsmart.qomo.kn.cost.manage.entity.AppSceneCostStandardBom;
|
||||
|
||||
/**
|
||||
* @Description: app_scene_cost_standard_bom
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-15
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IAppSceneCostStandardBomService extends IService<AppSceneCostStandardBom> {
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user