提交 0cc87ba3 authored 作者: Wangjiajie's avatar Wangjiajie

刚刚一些小问题

上级 067ff729
package org.jeecg.modules.iost.API.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 org.jeecg.modules.iost.API.entity.Materialinventory;
import org.jeecg.modules.iost.API.lanjieqi.Lanjieqi_API;
import org.jeecg.modules.iost.API.service.IMaterialinventoryService;
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.jeecg.modules.iost.API.vo.Request;
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;
/**
* @Description: 国网供应商重点原材料库存API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Api(tags="国网供应商重点原材料库存API")
@RestController
@RequestMapping("/API/eipmatinventory")
@Slf4j
public class MaterialinventoryController extends JeecgController<Materialinventory, IMaterialinventoryService> {
@Autowired
private IMaterialinventoryService materialinventoryService;
/**
* 分页列表查询
*
* @param materialinventory
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "国网供应商重点原材料库存API-分页列表查询")
@ApiOperation(value="国网供应商重点原材料库存API-分页列表查询", notes="国网供应商重点原材料库存API-分页列表查询")
@GetMapping(value = "/list")
public Request<?> queryPageList(Materialinventory materialinventory,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
String jieguo= Lanjieqi_API.Panduan(req);
if (jieguo!=null){
return Request.error10001(jieguo);
}
QueryWrapper<Materialinventory> queryWrapper = QueryGenerator.initQueryWrapper(materialinventory, req.getParameterMap());
Page<Materialinventory> page = new Page<Materialinventory>(pageNo, pageSize);
IPage<Materialinventory> pageList = materialinventoryService.page(page, queryWrapper);
return Request.OK(Lanjieqi_API.autowired(pageList));
}
/**
* 添加
*
* @param materialinventory
* @return
*/
@AutoLog(value = "国网供应商重点原材料库存API-添加")
@ApiOperation(value="国网供应商重点原材料库存API-添加", notes="国网供应商重点原材料库存API-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody Materialinventory materialinventory) {
materialinventoryService.save(materialinventory);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param materialinventory
* @return
*/
@AutoLog(value = "国网供应商重点原材料库存API-编辑")
@ApiOperation(value="国网供应商重点原材料库存API-编辑", notes="国网供应商重点原材料库存API-编辑")
@PutMapping(value = "/edit")
public Result<?> edit(@RequestBody Materialinventory materialinventory) {
materialinventoryService.updateById(materialinventory);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "国网供应商重点原材料库存API-通过id删除")
@ApiOperation(value="国网供应商重点原材料库存API-通过id删除", notes="国网供应商重点原材料库存API-通过id删除")
@DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
materialinventoryService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "国网供应商重点原材料库存API-批量删除")
@ApiOperation(value="国网供应商重点原材料库存API-批量删除", notes="国网供应商重点原材料库存API-批量删除")
@DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.materialinventoryService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
@AutoLog(value = "国网供应商重点原材料库存API-通过id查询")
@ApiOperation(value="国网供应商重点原材料库存API-通过id查询", notes="国网供应商重点原材料库存API-通过id查询")
@GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
Materialinventory materialinventory = materialinventoryService.getById(id);
if(materialinventory==null) {
return Result.error("未找到对应数据");
}
return Result.OK(materialinventory);
}
/**
* 导出excel
*
* @param request
* @param materialinventory
*/
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, Materialinventory materialinventory) {
return super.exportXls(request, materialinventory, Materialinventory.class, "国网供应商重点原材料库存API");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, Materialinventory.class);
}
}
package org.jeecg.modules.iost.API.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 org.jeecg.modules.iost.API.entity.PhysicalidApi;
import org.jeecg.modules.iost.API.lanjieqi.Lanjieqi_API;
import org.jeecg.modules.iost.API.service.IPhysicalidApiService;
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.jeecg.modules.iost.API.vo.Request;
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;
/**
* @Description: 国网实物ID信息API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Api(tags="国网实物ID信息API")
@RestController
@RequestMapping("/API/entity-maintenance")
@Slf4j
public class PhysicalidApiController extends JeecgController<PhysicalidApi, IPhysicalidApiService> {
@Autowired
private IPhysicalidApiService physicalidApiService;
/**
* 分页列表查询
*
* @param physicalidApi
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "国网实物ID信息API-分页列表查询")
@ApiOperation(value="国网实物ID信息API-分页列表查询", notes="国网实物ID信息API-分页列表查询")
@GetMapping(value = "/list")
public Request<?> queryPageList(PhysicalidApi physicalidApi,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
String jieguo= Lanjieqi_API.Panduan(req);
if (jieguo!=null){
return Request.error10001(jieguo);
}
QueryWrapper<PhysicalidApi> queryWrapper = QueryGenerator.initQueryWrapper(physicalidApi, req.getParameterMap());
Page<PhysicalidApi> page = new Page<PhysicalidApi>(pageNo, pageSize);
IPage<PhysicalidApi> pageList = physicalidApiService.page(page, queryWrapper);
return Request.OK(Lanjieqi_API.autowired(pageList));
}
/**
* 添加
*
* @param physicalidApi
* @return
*/
@AutoLog(value = "国网实物ID信息API-添加")
@ApiOperation(value="国网实物ID信息API-添加", notes="国网实物ID信息API-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody PhysicalidApi physicalidApi) {
physicalidApiService.save(physicalidApi);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param physicalidApi
* @return
*/
@AutoLog(value = "国网实物ID信息API-编辑")
@ApiOperation(value="国网实物ID信息API-编辑", notes="国网实物ID信息API-编辑")
@PutMapping(value = "/edit")
public Result<?> edit(@RequestBody PhysicalidApi physicalidApi) {
physicalidApiService.updateById(physicalidApi);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "国网实物ID信息API-通过id删除")
@ApiOperation(value="国网实物ID信息API-通过id删除", notes="国网实物ID信息API-通过id删除")
@DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
physicalidApiService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "国网实物ID信息API-批量删除")
@ApiOperation(value="国网实物ID信息API-批量删除", notes="国网实物ID信息API-批量删除")
@DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.physicalidApiService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
@AutoLog(value = "国网实物ID信息API-通过id查询")
@ApiOperation(value="国网实物ID信息API-通过id查询", notes="国网实物ID信息API-通过id查询")
@GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
PhysicalidApi physicalidApi = physicalidApiService.getById(id);
if(physicalidApi==null) {
return Result.error("未找到对应数据");
}
return Result.OK(physicalidApi);
}
/**
* 导出excel
*
* @param request
* @param physicalidApi
*/
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, PhysicalidApi physicalidApi) {
return super.exportXls(request, physicalidApi, PhysicalidApi.class, "国网实物ID信息API");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, PhysicalidApi.class);
}
}
package org.jeecg.modules.iost.API.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 org.jeecg.modules.iost.API.entity.ProductinventoryApi;
import org.jeecg.modules.iost.API.lanjieqi.Lanjieqi_API;
import org.jeecg.modules.iost.API.service.IProductinventoryApiService;
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.jeecg.modules.iost.API.vo.Request;
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;
/**
* @Description: 国网产成品库存信息API
* @Author: jeecg-boot
* @Date: 2021-07-15
* @Version: V1.0
*/
@Api(tags="国网产成品库存信息API")
@RestController
@RequestMapping("/API/eip-prod-store")
@Slf4j
public class ProductinventoryApiController extends JeecgController<ProductinventoryApi, IProductinventoryApiService> {
@Autowired
private IProductinventoryApiService productinventoryApiService;
/**
* 分页列表查询
*
* @param productinventoryApi
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "国网产成品库存信息API-分页列表查询")
@ApiOperation(value="国网产成品库存信息API-分页列表查询", notes="国网产成品库存信息API-分页列表查询")
@GetMapping(value = "/list")
public Request<?> queryPageList(ProductinventoryApi productinventoryApi,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
String jieguo= Lanjieqi_API.Panduan(req);
if (jieguo!=null){
return Request.error10001(jieguo);
}
QueryWrapper<ProductinventoryApi> queryWrapper = QueryGenerator.initQueryWrapper(productinventoryApi, req.getParameterMap());
Page<ProductinventoryApi> page = new Page<ProductinventoryApi>(pageNo, pageSize);
IPage<ProductinventoryApi> pageList = productinventoryApiService.page(page, queryWrapper);
return Request.OK(Lanjieqi_API.autowired(pageList));
}
/**
* 添加
*
* @param productinventoryApi
* @return
*/
@AutoLog(value = "国网产成品库存信息API-添加")
@ApiOperation(value="国网产成品库存信息API-添加", notes="国网产成品库存信息API-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody ProductinventoryApi productinventoryApi) {
productinventoryApiService.save(productinventoryApi);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param productinventoryApi
* @return
*/
@AutoLog(value = "国网产成品库存信息API-编辑")
@ApiOperation(value="国网产成品库存信息API-编辑", notes="国网产成品库存信息API-编辑")
@PutMapping(value = "/edit")
public Result<?> edit(@RequestBody ProductinventoryApi productinventoryApi) {
productinventoryApiService.updateById(productinventoryApi);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "国网产成品库存信息API-通过id删除")
@ApiOperation(value="国网产成品库存信息API-通过id删除", notes="国网产成品库存信息API-通过id删除")
@DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
productinventoryApiService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "国网产成品库存信息API-批量删除")
@ApiOperation(value="国网产成品库存信息API-批量删除", notes="国网产成品库存信息API-批量删除")
@DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.productinventoryApiService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
@AutoLog(value = "国网产成品库存信息API-通过id查询")
@ApiOperation(value="国网产成品库存信息API-通过id查询", notes="国网产成品库存信息API-通过id查询")
@GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
ProductinventoryApi productinventoryApi = productinventoryApiService.getById(id);
if(productinventoryApi==null) {
return Result.error("未找到对应数据");
}
return Result.OK(productinventoryApi);
}
/**
* 导出excel
*
* @param request
* @param productinventoryApi
*/
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, ProductinventoryApi productinventoryApi) {
return super.exportXls(request, productinventoryApi, ProductinventoryApi.class, "国网产成品库存信息API");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, ProductinventoryApi.class);
}
}
package org.jeecg.modules.iost.API.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.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.jeecg.modules.iost.API.entity.ProductionorderApi;
import org.jeecg.modules.iost.API.entity.Purchaseorder;
import org.jeecg.modules.iost.API.lanjieqi.Lanjieqi_API;
import org.jeecg.modules.iost.API.service.IProductionorderApiService;
import org.jeecg.modules.iost.API.vo.Request;
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;
/**
* @Description: 国网生产订单API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Api(tags="国网生产订单API")
@RestController
@RequestMapping("/API/supplier-ipo")
@Slf4j
public class ProductionorderApiController extends JeecgController<ProductionorderApi, IProductionorderApiService> {
@Autowired
private IProductionorderApiService productionorderApiService;
/**
* 分页列表查询
*
* @param productionorderApi
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "国网生产订单API-分页列表查询")
@ApiOperation(value="国网生产订单API-分页列表查询", notes="国网生产订单API-分页列表查询")
@GetMapping(value = "/list")
public Request<?> queryPageList(ProductionorderApi productionorderApi,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
String jieguo= Lanjieqi_API.Panduan(req);
if (jieguo!=null){
return Request.error10001(jieguo);
}
QueryWrapper<ProductionorderApi> queryWrapper = QueryGenerator.initQueryWrapper(productionorderApi, req.getParameterMap());
Page<ProductionorderApi> page = new Page<ProductionorderApi>(pageNo, pageSize);
IPage<ProductionorderApi> pageList = productionorderApiService.page(page, queryWrapper);
return Request.OK(Lanjieqi_API.autowired(pageList));
}
/**
* 添加
*
* @param productionorderApi
* @return
*/
@AutoLog(value = "国网生产订单API-添加")
@ApiOperation(value="国网生产订单API-添加", notes="国网生产订单API-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody ProductionorderApi productionorderApi) {
productionorderApiService.save(productionorderApi);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param productionorderApi
* @return
*/
@AutoLog(value = "国网生产订单API-编辑")
@ApiOperation(value="国网生产订单API-编辑", notes="国网生产订单API-编辑")
@PutMapping(value = "/edit")
public Result<?> edit(@RequestBody ProductionorderApi productionorderApi) {
productionorderApiService.updateById(productionorderApi);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "国网生产订单API-通过id删除")
@ApiOperation(value="国网生产订单API-通过id删除", notes="国网生产订单API-通过id删除")
@DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
productionorderApiService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "国网生产订单API-批量删除")
@ApiOperation(value="国网生产订单API-批量删除", notes="国网生产订单API-批量删除")
@DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.productionorderApiService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
@AutoLog(value = "国网生产订单API-通过id查询")
@ApiOperation(value="国网生产订单API-通过id查询", notes="国网生产订单API-通过id查询")
@GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
ProductionorderApi productionorderApi = productionorderApiService.getById(id);
if(productionorderApi==null) {
return Result.error("未找到对应数据");
}
return Result.OK(productionorderApi);
}
/**
* 导出excel
*
* @param request
* @param productionorderApi
*/
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, ProductionorderApi productionorderApi) {
return super.exportXls(request, productionorderApi, ProductionorderApi.class, "国网生产订单API");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, ProductionorderApi.class);
}
}
package org.jeecg.modules.iost.API.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 org.jeecg.modules.iost.API.entity.ProductionschedulingApi;
import org.jeecg.modules.iost.API.lanjieqi.Lanjieqi_API;
import org.jeecg.modules.iost.API.service.IProductionschedulingApiService;
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.jeecg.modules.iost.API.vo.Request;
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;
/**
* @Description: 排产计划
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Api(tags="排产计划")
@RestController
@RequestMapping("/API/supplier-production-schedule")
@Slf4j
public class ProductionschedulingApiController extends JeecgController<ProductionschedulingApi, IProductionschedulingApiService> {
@Autowired
private IProductionschedulingApiService productionschedulingApiService;
/**
* 分页列表查询
*
* @param productionschedulingApi
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "排产计划-分页列表查询")
@ApiOperation(value="排产计划-分页列表查询", notes="排产计划-分页列表查询")
@GetMapping(value = "/list")
public Request<?> queryPageList(ProductionschedulingApi productionschedulingApi,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
String jieguo= Lanjieqi_API.Panduan(req);
if (jieguo!=null){
return Request.error10001(jieguo);
}
QueryWrapper<ProductionschedulingApi> queryWrapper = QueryGenerator.initQueryWrapper(productionschedulingApi, req.getParameterMap());
Page<ProductionschedulingApi> page = new Page<ProductionschedulingApi>(pageNo, pageSize);
IPage<ProductionschedulingApi> pageList = productionschedulingApiService.page(page, queryWrapper);
return Request.OK(Lanjieqi_API.autowired(pageList));
}
/**
* 添加
*
* @param productionschedulingApi
* @return
*/
@AutoLog(value = "排产计划-添加")
@ApiOperation(value="排产计划-添加", notes="排产计划-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody ProductionschedulingApi productionschedulingApi) {
productionschedulingApiService.save(productionschedulingApi);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param productionschedulingApi
* @return
*/
@AutoLog(value = "排产计划-编辑")
@ApiOperation(value="排产计划-编辑", notes="排产计划-编辑")
@PutMapping(value = "/edit")
public Result<?> edit(@RequestBody ProductionschedulingApi productionschedulingApi) {
productionschedulingApiService.updateById(productionschedulingApi);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "排产计划-通过id删除")
@ApiOperation(value="排产计划-通过id删除", notes="排产计划-通过id删除")
@DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
productionschedulingApiService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "排产计划-批量删除")
@ApiOperation(value="排产计划-批量删除", notes="排产计划-批量删除")
@DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.productionschedulingApiService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
@AutoLog(value = "排产计划-通过id查询")
@ApiOperation(value="排产计划-通过id查询", notes="排产计划-通过id查询")
@GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
ProductionschedulingApi productionschedulingApi = productionschedulingApiService.getById(id);
if(productionschedulingApi==null) {
return Result.error("未找到对应数据");
}
return Result.OK(productionschedulingApi);
}
/**
* 导出excel
*
* @param request
* @param productionschedulingApi
*/
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, ProductionschedulingApi productionschedulingApi) {
return super.exportXls(request, productionschedulingApi, ProductionschedulingApi.class, "排产计划");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, ProductionschedulingApi.class);
}
}
...@@ -76,30 +76,16 @@ public class PurchaseorderController extends JeecgController<Purchaseorder, IPur ...@@ -76,30 +76,16 @@ public class PurchaseorderController extends JeecgController<Purchaseorder, IPur
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) { HttpServletRequest req) {
QueryWrapper<Purchaseorder> queryWrapper = QueryGenerator.initQueryWrapper(purchaseorder, req.getParameterMap()); String jieguo=Lanjieqi_API.Panduan(req);
String jieguo=lanjieqi_api.Panduan(req);
if (jieguo!=null){ if (jieguo!=null){
return Request.error10001(jieguo); return Request.error10001(jieguo);
} }
QueryWrapper<Purchaseorder> queryWrapper = QueryGenerator.initQueryWrapper(purchaseorder, req.getParameterMap());
Page<Purchaseorder> page = new Page<Purchaseorder>(pageNo, pageSize); Page<Purchaseorder> page = new Page<Purchaseorder>(pageNo, pageSize);
IPage<Purchaseorder> pageList = purchaseorderService.page(page, queryWrapper); IPage<Purchaseorder> pageList = purchaseorderService.page(page, queryWrapper);
return Request.OK(autowired(pageList)); return Request.OK(Lanjieqi_API.autowired(pageList));
}
public PurchaseordeRequest autowired(IPage<?> page){
List<?> list = page.getRecords();
PurchaseordeRequest purchaseordeRequest = new PurchaseordeRequest();
purchaseordeRequest.setData(list);
PageInfo pageInfo = new PageInfo();
pageInfo.setPageSize((int)page.getSize());
//pageInfo.setPageCount(page.get);
pageInfo.setPageNum((int)page.getCurrent());
pageInfo.setTotal((int)page.getTotal());
pageInfo.setPageNum((int)page.getCurrent());
purchaseordeRequest.setPageInfo(pageInfo);
purchaseordeRequest.setMessage("成功");
purchaseordeRequest.setStatus("0000");
return purchaseordeRequest;
} }
/** /**
* 添加 * 添加
* *
...@@ -110,21 +96,9 @@ public class PurchaseorderController extends JeecgController<Purchaseorder, IPur ...@@ -110,21 +96,9 @@ public class PurchaseorderController extends JeecgController<Purchaseorder, IPur
@ApiOperation(value="采购订单接口-添加", notes="采购订单接口-添加") @ApiOperation(value="采购订单接口-添加", notes="采购订单接口-添加")
@PostMapping(value = "/add") @PostMapping(value = "/add")
public Result<?> add(@RequestBody Purchaseorder purchaseorder) { public Result<?> add(@RequestBody Purchaseorder purchaseorder) {
//Request request = new Request(jsonObject);
purchaseorderService.save(purchaseorder); purchaseorderService.save(purchaseorder);
return Result.OK("添加成功!"); return Result.OK("添加成功!");
} }
/**
* json转换成Purchaseorder类
* @return
*/
public Purchaseorder purchaseorderentity(JSONObject jsonObject){
JSONObject dataObj = jsonObject.getJSONObject("data");
String JSONStr = JSON.toJSONString(dataObj);
Purchaseorder purchaseorder = JSON.parseObject(JSONStr, Purchaseorder.class);
return purchaseorder;
}
/** /**
* 编辑 * 编辑
......
package org.jeecg.modules.iost.API.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 org.jeecg.modules.iost.API.entity.Reportwork;
import org.jeecg.modules.iost.API.lanjieqi.Lanjieqi_API;
import org.jeecg.modules.iost.API.service.IReportworkService;
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.jeecg.modules.iost.API.vo.Request;
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;
/**
* @Description: 国网报工信息API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Api(tags="国网报工信息API")
@RestController
@RequestMapping("/API/supplier-process-work")
@Slf4j
public class ReportworkController extends JeecgController<Reportwork, IReportworkService> {
@Autowired
private IReportworkService reportworkService;
/**
* 分页列表查询
*
* @param reportwork
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "国网报工信息API-分页列表查询")
@ApiOperation(value="国网报工信息API-分页列表查询", notes="国网报工信息API-分页列表查询")
@GetMapping(value = "/list")
public Request<?> queryPageList(Reportwork reportwork,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
String jieguo= Lanjieqi_API.Panduan(req);
if (jieguo!=null){
return Request.error10001(jieguo);
}
QueryWrapper<Reportwork> queryWrapper = QueryGenerator.initQueryWrapper(reportwork, req.getParameterMap());
Page<Reportwork> page = new Page<Reportwork>(pageNo, pageSize);
IPage<Reportwork> pageList = reportworkService.page(page, queryWrapper);
return Request.OK(Lanjieqi_API.autowired(pageList));
}
/**
* 添加
*
* @param reportwork
* @return
*/
@AutoLog(value = "国网报工信息API-添加")
@ApiOperation(value="国网报工信息API-添加", notes="国网报工信息API-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody Reportwork reportwork) {
reportworkService.save(reportwork);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param reportwork
* @return
*/
@AutoLog(value = "国网报工信息API-编辑")
@ApiOperation(value="国网报工信息API-编辑", notes="国网报工信息API-编辑")
@PutMapping(value = "/edit")
public Result<?> edit(@RequestBody Reportwork reportwork) {
reportworkService.updateById(reportwork);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "国网报工信息API-通过id删除")
@ApiOperation(value="国网报工信息API-通过id删除", notes="国网报工信息API-通过id删除")
@DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
reportworkService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "国网报工信息API-批量删除")
@ApiOperation(value="国网报工信息API-批量删除", notes="国网报工信息API-批量删除")
@DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.reportworkService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
@AutoLog(value = "国网报工信息API-通过id查询")
@ApiOperation(value="国网报工信息API-通过id查询", notes="国网报工信息API-通过id查询")
@GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
Reportwork reportwork = reportworkService.getById(id);
if(reportwork==null) {
return Result.error("未找到对应数据");
}
return Result.OK(reportwork);
}
/**
* 导出excel
*
* @param request
* @param reportwork
*/
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, Reportwork reportwork) {
return super.exportXls(request, reportwork, Reportwork.class, "国网报工信息API");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, Reportwork.class);
}
}
package org.jeecg.modules.iost.API.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 org.jeecg.modules.iost.API.entity.ReservestockApi;
import org.jeecg.modules.iost.API.lanjieqi.Lanjieqi_API;
import org.jeecg.modules.iost.API.service.IReservestockApiService;
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.jeecg.modules.iost.API.vo.Request;
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;
/**
* @Description: 国网备品备件库存API
* @Author: jeecg-boot
* @Date: 2021-07-15
* @Version: V1.0
*/
@Api(tags="国网备品备件库存API")
@RestController
@RequestMapping("/API/eip_spare_product ")
@Slf4j
public class ReservestockApiController extends JeecgController<ReservestockApi, IReservestockApiService> {
@Autowired
private IReservestockApiService reservestockApiService;
/**
* 分页列表查询
*
* @param reservestockApi
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "国网备品备件库存API-分页列表查询")
@ApiOperation(value="国网备品备件库存API-分页列表查询", notes="国网备品备件库存API-分页列表查询")
@GetMapping(value = "/list")
public Request<?> queryPageList(ReservestockApi reservestockApi,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
String jieguo= Lanjieqi_API.Panduan(req);
if (jieguo!=null){
return Request.error10001(jieguo);
}
QueryWrapper<ReservestockApi> queryWrapper = QueryGenerator.initQueryWrapper(reservestockApi, req.getParameterMap());
Page<ReservestockApi> page = new Page<ReservestockApi>(pageNo, pageSize);
IPage<ReservestockApi> pageList = reservestockApiService.page(page, queryWrapper);
return Request.OK(Lanjieqi_API.autowired(pageList));
}
/**
* 添加
*
* @param reservestockApi
* @return
*/
@AutoLog(value = "国网备品备件库存API-添加")
@ApiOperation(value="国网备品备件库存API-添加", notes="国网备品备件库存API-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody ReservestockApi reservestockApi) {
reservestockApiService.save(reservestockApi);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param reservestockApi
* @return
*/
@AutoLog(value = "国网备品备件库存API-编辑")
@ApiOperation(value="国网备品备件库存API-编辑", notes="国网备品备件库存API-编辑")
@PutMapping(value = "/edit")
public Result<?> edit(@RequestBody ReservestockApi reservestockApi) {
reservestockApiService.updateById(reservestockApi);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "国网备品备件库存API-通过id删除")
@ApiOperation(value="国网备品备件库存API-通过id删除", notes="国网备品备件库存API-通过id删除")
@DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
reservestockApiService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "国网备品备件库存API-批量删除")
@ApiOperation(value="国网备品备件库存API-批量删除", notes="国网备品备件库存API-批量删除")
@DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.reservestockApiService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
@AutoLog(value = "国网备品备件库存API-通过id查询")
@ApiOperation(value="国网备品备件库存API-通过id查询", notes="国网备品备件库存API-通过id查询")
@GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
ReservestockApi reservestockApi = reservestockApiService.getById(id);
if(reservestockApi==null) {
return Result.error("未找到对应数据");
}
return Result.OK(reservestockApi);
}
/**
* 导出excel
*
* @param request
* @param reservestockApi
*/
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, ReservestockApi reservestockApi) {
return super.exportXls(request, reservestockApi, ReservestockApi.class, "国网备品备件库存API");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, ReservestockApi.class);
}
}
...@@ -19,7 +19,9 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; ...@@ -19,7 +19,9 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.iost.API.entity.SalesorderApi; import org.jeecg.modules.iost.API.entity.SalesorderApi;
import org.jeecg.modules.iost.API.lanjieqi.Lanjieqi_API;
import org.jeecg.modules.iost.API.service.ISalesorderApiService; import org.jeecg.modules.iost.API.service.ISalesorderApiService;
import org.jeecg.modules.iost.API.vo.Request;
import org.jeecgframework.poi.excel.ExcelImportUtil; import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants; import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams; import org.jeecgframework.poi.excel.entity.ExportParams;
...@@ -44,7 +46,7 @@ import org.jeecg.common.aspect.annotation.AutoLog; ...@@ -44,7 +46,7 @@ import org.jeecg.common.aspect.annotation.AutoLog;
*/ */
@Api(tags="国网销售订单API") @Api(tags="国网销售订单API")
@RestController @RestController
@RequestMapping("/API/salesorderApi") @RequestMapping("/API/supplier-so")
@Slf4j @Slf4j
public class SalesorderApiController extends JeecgController<SalesorderApi, ISalesorderApiService> { public class SalesorderApiController extends JeecgController<SalesorderApi, ISalesorderApiService> {
@Autowired @Autowired
...@@ -62,14 +64,18 @@ public class SalesorderApiController extends JeecgController<SalesorderApi, ISal ...@@ -62,14 +64,18 @@ public class SalesorderApiController extends JeecgController<SalesorderApi, ISal
@AutoLog(value = "国网销售订单API-分页列表查询") @AutoLog(value = "国网销售订单API-分页列表查询")
@ApiOperation(value="国网销售订单API-分页列表查询", notes="国网销售订单API-分页列表查询") @ApiOperation(value="国网销售订单API-分页列表查询", notes="国网销售订单API-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<?> queryPageList(SalesorderApi salesorderApi, public Request<?> queryPageList(SalesorderApi salesorderApi,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) { HttpServletRequest req) {
String jieguo=Lanjieqi_API.Panduan(req);
if (jieguo!=null){
return Request.error10001(jieguo);
}
QueryWrapper<SalesorderApi> queryWrapper = QueryGenerator.initQueryWrapper(salesorderApi, req.getParameterMap()); QueryWrapper<SalesorderApi> queryWrapper = QueryGenerator.initQueryWrapper(salesorderApi, req.getParameterMap());
Page<SalesorderApi> page = new Page<SalesorderApi>(pageNo, pageSize); Page<SalesorderApi> page = new Page<SalesorderApi>(pageNo, pageSize);
IPage<SalesorderApi> pageList = salesorderApiService.page(page, queryWrapper); IPage<SalesorderApi> pageList = salesorderApiService.page(page, queryWrapper);
return Result.OK(pageList); return Request.OK(Lanjieqi_API.autowired(pageList));
} }
/** /**
......
package org.jeecg.modules.iost.API.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 org.jeecg.modules.iost.API.entity.SupplylistApi;
import org.jeecg.modules.iost.API.lanjieqi.Lanjieqi_API;
import org.jeecg.modules.iost.API.service.ISupplylistApiService;
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.jeecg.modules.iost.API.vo.Request;
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;
/**
* @Description: 供货单信息
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Api(tags="供货单信息")
@RestController
@RequestMapping("/API/supply-add")
@Slf4j
public class SupplylistApiController extends JeecgController<SupplylistApi, ISupplylistApiService> {
@Autowired
private ISupplylistApiService supplylistApiService;
/**
* 分页列表查询
*
* @param supplylistApi
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "供货单信息-分页列表查询")
@ApiOperation(value="供货单信息-分页列表查询", notes="供货单信息-分页列表查询")
@GetMapping(value = "/list")
public Request<?> queryPageList(SupplylistApi supplylistApi,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
String jieguo= Lanjieqi_API.Panduan(req);
if (jieguo!=null){
return Request.error10001(jieguo);
}
QueryWrapper<SupplylistApi> queryWrapper = QueryGenerator.initQueryWrapper(supplylistApi, req.getParameterMap());
Page<SupplylistApi> page = new Page<SupplylistApi>(pageNo, pageSize);
IPage<SupplylistApi> pageList = supplylistApiService.page(page, queryWrapper);
return Request.OK(Lanjieqi_API.autowired(pageList));
}
/**
* 添加
*
* @param supplylistApi
* @return
*/
@AutoLog(value = "供货单信息-添加")
@ApiOperation(value="供货单信息-添加", notes="供货单信息-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody SupplylistApi supplylistApi) {
supplylistApiService.save(supplylistApi);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param supplylistApi
* @return
*/
@AutoLog(value = "供货单信息-编辑")
@ApiOperation(value="供货单信息-编辑", notes="供货单信息-编辑")
@PutMapping(value = "/edit")
public Result<?> edit(@RequestBody SupplylistApi supplylistApi) {
supplylistApiService.updateById(supplylistApi);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "供货单信息-通过id删除")
@ApiOperation(value="供货单信息-通过id删除", notes="供货单信息-通过id删除")
@DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
supplylistApiService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "供货单信息-批量删除")
@ApiOperation(value="供货单信息-批量删除", notes="供货单信息-批量删除")
@DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.supplylistApiService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
@AutoLog(value = "供货单信息-通过id查询")
@ApiOperation(value="供货单信息-通过id查询", notes="供货单信息-通过id查询")
@GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
SupplylistApi supplylistApi = supplylistApiService.getById(id);
if(supplylistApi==null) {
return Result.error("未找到对应数据");
}
return Result.OK(supplylistApi);
}
/**
* 导出excel
*
* @param request
* @param supplylistApi
*/
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, SupplylistApi supplylistApi) {
return super.exportXls(request, supplylistApi, SupplylistApi.class, "供货单信息");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, SupplylistApi.class);
}
}
package org.jeecg.modules.iost.API.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 org.jeecg.modules.iost.API.entity.WorkorderApi;
import org.jeecg.modules.iost.API.lanjieqi.Lanjieqi_API;
import org.jeecg.modules.iost.API.service.IWorkorderApiService;
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.jeecg.modules.iost.API.vo.Request;
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;
/**
* @Description: 国网工单Api
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Api(tags="国网工单Api")
@RestController
@RequestMapping("/API/Eipsupplier-wo")
@Slf4j
public class WorkorderApiController extends JeecgController<WorkorderApi, IWorkorderApiService> {
@Autowired
private IWorkorderApiService workorderApiService;
/**
* 分页列表查询
*
* @param workorderApi
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "国网工单Api-分页列表查询")
@ApiOperation(value="国网工单Api-分页列表查询", notes="国网工单Api-分页列表查询")
@GetMapping(value = "/list")
public Request<?> queryPageList(WorkorderApi workorderApi,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
String jieguo= Lanjieqi_API.Panduan(req);
if (jieguo!=null){
return Request.error10001(jieguo);
}
QueryWrapper<WorkorderApi> queryWrapper = QueryGenerator.initQueryWrapper(workorderApi, req.getParameterMap());
Page<WorkorderApi> page = new Page<WorkorderApi>(pageNo, pageSize);
IPage<WorkorderApi> pageList = workorderApiService.page(page, queryWrapper);
return Request.OK(Lanjieqi_API.autowired(pageList));
}
/**
* 添加
*
* @param workorderApi
* @return
*/
@AutoLog(value = "国网工单Api-添加")
@ApiOperation(value="国网工单Api-添加", notes="国网工单Api-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody WorkorderApi workorderApi) {
workorderApiService.save(workorderApi);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param workorderApi
* @return
*/
@AutoLog(value = "国网工单Api-编辑")
@ApiOperation(value="国网工单Api-编辑", notes="国网工单Api-编辑")
@PutMapping(value = "/edit")
public Result<?> edit(@RequestBody WorkorderApi workorderApi) {
workorderApiService.updateById(workorderApi);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "国网工单Api-通过id删除")
@ApiOperation(value="国网工单Api-通过id删除", notes="国网工单Api-通过id删除")
@DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
workorderApiService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "国网工单Api-批量删除")
@ApiOperation(value="国网工单Api-批量删除", notes="国网工单Api-批量删除")
@DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.workorderApiService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
@AutoLog(value = "国网工单Api-通过id查询")
@ApiOperation(value="国网工单Api-通过id查询", notes="国网工单Api-通过id查询")
@GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
WorkorderApi workorderApi = workorderApiService.getById(id);
if(workorderApi==null) {
return Result.error("未找到对应数据");
}
return Result.OK(workorderApi);
}
/**
* 导出excel
*
* @param request
* @param workorderApi
*/
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, WorkorderApi workorderApi) {
return super.exportXls(request, workorderApi, WorkorderApi.class, "国网工单Api");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, WorkorderApi.class);
}
}
package org.jeecg.modules.iost.API.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 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: 国网供应商重点原材料库存API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Data
@TableName("materialinventory")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="materialinventory对象", description="国网供应商重点原材料库存API")
public class Materialinventory implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private java.lang.String id;
/**采购方总部编码*/
@Excel(name = "采购方总部编码", width = 15)
@ApiModelProperty(value = "采购方总部编码")
private java.lang.String purchaserhqcode;
/**供应商编码*/
@Excel(name = "供应商编码", width = 15)
@ApiModelProperty(value = "供应商编码")
private java.lang.String suppliercode;
/**供应商名称*/
@Excel(name = "供应商名称", width = 15)
@ApiModelProperty(value = "供应商名称")
private java.lang.String suppliername;
/**原材料名称*/
@Excel(name = "原材料名称", width = 15)
@ApiModelProperty(value = "原材料名称")
private java.lang.String matname;
/**原材料编码*/
@Excel(name = "原材料编码", width = 15)
@ApiModelProperty(value = "原材料编码")
private java.lang.String matcode;
/**原材料库存数量*/
@Excel(name = "原材料库存数量", width = 15)
@ApiModelProperty(value = "原材料库存数量")
private java.lang.String matnum;
/**原材料单位*/
@Excel(name = "原材料单位", width = 15)
@ApiModelProperty(value = "原材料单位")
private java.lang.String matunit;
/**原材料描述*/
@Excel(name = "原材料描述", width = 15)
@ApiModelProperty(value = "原材料描述")
private java.lang.String matdescription;
/**原材料产地*/
@Excel(name = "原材料产地", width = 15)
@ApiModelProperty(value = "原材料产地")
private java.lang.String matprodaddr;
/**数据来源:0:供应商, 1:网关, 2:代理*/
@Excel(name = "数据来源:0:供应商, 1:网关, 2:代理", width = 15)
@ApiModelProperty(value = "数据来源:0:供应商, 1:网关, 2:代理")
private java.lang.String datasource;
/**来源数据创建时间*/
@Excel(name = "来源数据创建时间", width = 15)
@ApiModelProperty(value = "来源数据创建时间")
private java.lang.String datasourcecreatetime;
/**备注*/
@Excel(name = "备注", width = 15)
@ApiModelProperty(value = "备注")
private java.lang.String remark;
/**数据拥有方:取值:供应商编码*/
@Excel(name = "数据拥有方:取值:供应商编码", width = 15)
@ApiModelProperty(value = "数据拥有方:取值:供应商编码")
private java.lang.String ownerid;
/**数据可见方:取值:采购方编码*/
@Excel(name = "数据可见方:取值:采购方编码", width = 15)
@ApiModelProperty(value = "数据可见方:取值:采购方编码")
private java.lang.String openid;
}
package org.jeecg.modules.iost.API.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 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: 国网实物ID信息API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Data
@TableName("physicalid_api")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="physicalid_api对象", description="国网实物ID信息API")
public class PhysicalidApi implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**采购方总部编码*/
@Excel(name = "采购方总部编码", width = 15)
@ApiModelProperty(value = "采购方总部编码")
private String purchaserhqcode;
/**供应商编码*/
@Excel(name = "供应商编码", width = 15)
@ApiModelProperty(value = "供应商编码")
private String suppliercode;
/**供应商名称*/
@Excel(name = "供应商名称", width = 15)
@ApiModelProperty(value = "供应商名称")
private String suppliername;
/**实物ID*/
@Excel(name = "实物ID", width = 15)
@ApiModelProperty(value = "实物ID")
private String entitycode;
/**采购订单行项目id*/
@Excel(name = "采购订单行项目id", width = 15)
@ApiModelProperty(value = "采购订单行项目id")
private String poitemid;
/**实物生产状态:0:未生产 1:生产中 2:生产完成*/
@Excel(name = "实物生产状态:0:未生产 1:生产中 2:生产完成", width = 15)
@ApiModelProperty(value = "实物生产状态:0:未生产 1:生产中 2:生产完成")
private String entitystatus;
/**数据来源:0:供应商, 1:网关, 2:代理*/
@Excel(name = "数据来源:0:供应商, 1:网关, 2:代理", width = 15)
@ApiModelProperty(value = "数据来源:0:供应商, 1:网关, 2:代理")
private String datasource;
/**来源数据创建时间*/
@Excel(name = "来源数据创建时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "来源数据创建时间")
private Date datasourcecreatetime;
/**备注*/
@Excel(name = "备注", width = 15)
@ApiModelProperty(value = "备注")
private String remark;
/**数据拥有方:取值:供应商编码*/
@Excel(name = "数据拥有方:取值:供应商编码", width = 15)
@ApiModelProperty(value = "数据拥有方:取值:供应商编码")
private String ownerid;
/**数据可见方:取值:采购方编码*/
@Excel(name = "数据可见方:取值:采购方编码", width = 15)
@ApiModelProperty(value = "数据可见方:取值:采购方编码")
private String openid;
}
package org.jeecg.modules.iost.API.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 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: 国网产成品库存信息API
* @Author: jeecg-boot
* @Date: 2021-07-15
* @Version: V1.0
*/
@Data
@TableName("productinventory_api")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="productinventory_api对象", description="国网产成品库存信息API")
public class ProductinventoryApi implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**采购方总部编码*/
@Excel(name = "采购方总部编码", width = 15)
@ApiModelProperty(value = "采购方总部编码")
private String purchaserhqcode;
/**供应商编码*/
@Excel(name = "供应商编码", width = 15)
@ApiModelProperty(value = "供应商编码")
private String suppliercode;
/**供应商名称*/
@Excel(name = "供应商名称", width = 15)
@ApiModelProperty(value = "供应商名称")
private String suppliername;
/**产成品编码*/
@Excel(name = "产成品编码", width = 15)
@ApiModelProperty(value = "产成品编码")
private String productcode;
/**产成品名称*/
@Excel(name = "产成品名称", width = 15)
@ApiModelProperty(value = "产成品名称")
private String productname;
/**产成品库存剩余数量*/
@Excel(name = "产成品库存剩余数量", width = 15)
@ApiModelProperty(value = "产成品库存剩余数量")
private String productamount;
/**计量单位*/
@Excel(name = "计量单位", width = 15)
@ApiModelProperty(value = "计量单位")
private String productunit;
/**数据来源:0:供应商, 1:网关, 2:代理*/
@Excel(name = "数据来源:0:供应商, 1:网关, 2:代理", width = 15)
@ApiModelProperty(value = "数据来源:0:供应商, 1:网关, 2:代理")
private String datasource;
/**来源数据创建时间*/
@Excel(name = "来源数据创建时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "来源数据创建时间")
private Date datasourcecreatetime;
/**备注*/
@Excel(name = "备注", width = 15)
@ApiModelProperty(value = "备注")
private String remark;
/**数据拥有方:取值:供应商编码*/
@Excel(name = "数据拥有方:取值:供应商编码", width = 15)
@ApiModelProperty(value = "数据拥有方:取值:供应商编码")
private String ownerid;
/**数据可见方:取值:采购方编码*/
@Excel(name = "数据可见方:取值:采购方编码", width = 15)
@ApiModelProperty(value = "数据可见方:取值:采购方编码")
private String openid;
}
package org.jeecg.modules.iost.API.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 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: 国网生产订单API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Data
@TableName("productionorder_api")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="productionorder_api对象", description="国网生产订单API")
public class ProductionorderApi implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**采购方总部编码*/
@Excel(name = "采购方总部编码", width = 15)
@ApiModelProperty(value = "采购方总部编码")
private String purchaserhqcode;
/**订单类型:0:缺省值,可以无视;1:二次屏柜、2:二次装置*/
@Excel(name = "订单类型:0:缺省值,可以无视;1:二次屏柜、2:二次装置", width = 15)
@ApiModelProperty(value = "订单类型:0:缺省值,可以无视;1:二次屏柜、2:二次装置")
private String ipotype;
/**供应商编码*/
@Excel(name = "供应商编码", width = 15)
@ApiModelProperty(value = "供应商编码")
private String suppliercode;
/**供应商名称*/
@Excel(name = "供应商名称", width = 15)
@ApiModelProperty(value = "供应商名称")
private String suppliername;
/**生产订单号*/
@Excel(name = "生产订单号", width = 15)
@ApiModelProperty(value = "生产订单号")
private String ipono;
/**品类编码*/
@Excel(name = "品类编码", width = 15)
@ApiModelProperty(value = "品类编码")
private String categorycode;
/**种类编码*/
@Excel(name = "种类编码", width = 15)
@ApiModelProperty(value = "种类编码")
private String subclasscode;
/**排产计划编码*/
@Excel(name = "排产计划编码", width = 15)
@ApiModelProperty(value = "排产计划编码")
private String schedulecode;
/**采购订单行项目id(供货单行项目id)或销售订单号*/
@Excel(name = "采购订单行项目id(供货单行项目id)或销售订单号", width = 15)
@ApiModelProperty(value = "采购订单行项目id(供货单行项目id)或销售订单号")
private String poitemid;
/**数据关联类型:默认为1; 1:关联采购订单行项目(供货单行项目); 2:关联销售订单行项目*/
@Excel(name = "数据关联类型:默认为1; 1:关联采购订单行项目(供货单行项目); 2:关联销售订单行项目", width = 15)
@ApiModelProperty(value = "数据关联类型:默认为1; 1:关联采购订单行项目(供货单行项目); 2:关联销售订单行项目")
private String datatype;
/**销售订单行项目号*/
@Excel(name = "销售订单行项目号", width = 15)
@ApiModelProperty(value = "销售订单行项目号")
private String soitemno;
/**厂家物料编码*/
@Excel(name = "厂家物料编码", width = 15)
@ApiModelProperty(value = "厂家物料编码")
private String materialscode;
/**厂家物料名称*/
@Excel(name = "厂家物料名称", width = 15)
@ApiModelProperty(value = "厂家物料名称")
private String materialsname;
/**厂家物资单位*/
@Excel(name = "厂家物资单位", width = 15)
@ApiModelProperty(value = "厂家物资单位")
private String materialsunit;
/**厂家物料描述*/
@Excel(name = "厂家物料描述", width = 15)
@ApiModelProperty(value = "厂家物料描述")
private String materialsdesc;
/**生产数量*/
@Excel(name = "生产数量", width = 15)
@ApiModelProperty(value = "生产数量")
private String amount;
/**计量单位*/
@Excel(name = "计量单位", width = 15)
@ApiModelProperty(value = "计量单位")
private String unit;
/**物资id分组*/
@Excel(name = "物资id分组", width = 15)
@ApiModelProperty(value = "物资id分组")
private String productidgrpno;
/**物资id类型*/
@Excel(name = "物资id类型", width = 15)
@ApiModelProperty(value = "物资id类型")
private String productidtype;
/**产品型号*/
@Excel(name = "产品型号", width = 15)
@ApiModelProperty(value = "产品型号")
private String productmodel;
/**计划开始日期*/
@Excel(name = "计划开始日期", width = 15)
@ApiModelProperty(value = "计划开始日期")
private String planstartdate;
/**计划完成日期*/
@Excel(name = "计划完成日期", width = 15)
@ApiModelProperty(value = "计划完成日期")
private String planfinishdate;
/**实际开始日期*/
@Excel(name = "实际开始日期", width = 15)
@ApiModelProperty(value = "实际开始日期")
private String actualstartdate;
/**实际完成日期*/
@Excel(name = "实际完成日期", width = 15)
@ApiModelProperty(value = "实际完成日期")
private String actualfinishdate;
/**生产工厂名称*/
@Excel(name = "生产工厂名称", width = 15)
@ApiModelProperty(value = "生产工厂名称")
private String plantname;
/**生产车间名称*/
@Excel(name = "生产车间名称", width = 15)
@ApiModelProperty(value = "生产车间名称")
private String workshopname;
/**生产订单状态*/
@Excel(name = "生产订单状态", width = 15)
@ApiModelProperty(value = "生产订单状态")
private String ipostatus;
/**生产中心*/
@Excel(name = "生产中心", width = 15)
@ApiModelProperty(value = "生产中心")
private String center;
/**数据来源*/
@Excel(name = "数据来源", width = 15)
@ApiModelProperty(value = "数据来源")
private String datasource;
/**来源数据创建时间*/
@Excel(name = "来源数据创建时间", width = 15)
@ApiModelProperty(value = "来源数据创建时间")
private String datasourcecreatetime;
/**数据拥有方*/
@Excel(name = "数据拥有方", width = 15)
@ApiModelProperty(value = "数据拥有方")
private String ownerid;
/**数据可见方*/
@Excel(name = "数据可见方", width = 15)
@ApiModelProperty(value = "数据可见方")
private String openid;
}
package org.jeecg.modules.iost.API.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 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: 排产计划
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Data
@TableName("productionscheduling_api")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="productionscheduling_api对象", description="排产计划")
public class ProductionschedulingApi implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**采购方总部编码*/
@Excel(name = "采购方总部编码", width = 15)
@ApiModelProperty(value = "采购方总部编码")
private String purchaserhqcode;
/**供应商编码*/
@Excel(name = "供应商编码", width = 15)
@ApiModelProperty(value = "供应商编码")
private String suppliercode;
/**供应商名称*/
@Excel(name = "供应商名称", width = 15)
@ApiModelProperty(value = "供应商名称")
private String suppliername;
/**采购订单行项目 id*/
@Excel(name = "采购订单行项目 id", width = 15)
@ApiModelProperty(value = "采购订单行项目 id")
private Integer poitemid;
/**排产计划编码*/
@Excel(name = "排产计划编码", width = 15)
@ApiModelProperty(value = "排产计划编码")
private String schedulecode;
/**省公司单位编码*/
@Excel(name = "省公司单位编码", width = 15)
@ApiModelProperty(value = "省公司单位编码")
private String provcocode;
/**省公司单位名称*/
@Excel(name = "省公司单位名称", width = 15)
@ApiModelProperty(value = "省公司单位名称")
private String provconame;
/**计划工期(天数)*/
@Excel(name = "计划工期(天数)", width = 15)
@ApiModelProperty(value = "计划工期(天数)")
private String planperiod;
/**实际工期*/
@Excel(name = "实际工期", width = 15)
@ApiModelProperty(value = "实际工期")
private String actualperiod;
/**进度*/
@Excel(name = "进度", width = 15)
@ApiModelProperty(value = "进度")
private String schedule;
/**交付日期(最后日期,底线)*/
@Excel(name = "交付日期(最后日期,底线)", width = 15)
@ApiModelProperty(value = "交付日期(最后日期,底线)")
private String duedate;
/**计划开始日期*/
@Excel(name = "计划开始日期", width = 15)
@ApiModelProperty(value = "计划开始日期")
private String planstartdate;
/**计划完成日期*/
@Excel(name = "计划完成日期", width = 15)
@ApiModelProperty(value = "计划完成日期")
private String planfinishdate;
/**实际开始日期*/
@Excel(name = "实际开始日期", width = 15)
@ApiModelProperty(value = "实际开始日期")
private String actualstartdate;
/**实际完成日期*/
@Excel(name = "实际完成日期", width = 15)
@ApiModelProperty(value = "实际完成日期")
private String actualfinishdate;
/**品类编码*/
@Excel(name = "品类编码", width = 15)
@ApiModelProperty(value = "品类编码")
private String categorycode;
/**种类编码*/
@Excel(name = "种类编码", width = 15)
@ApiModelProperty(value = "种类编码")
private String subclasscode;
/**备注*/
@Excel(name = "备注", width = 15)
@ApiModelProperty(value = "备注")
private String remark;
/**数据来源*/
@Excel(name = "数据来源", width = 15)
@ApiModelProperty(value = "数据来源")
private String datasource;
/**来源数据创建时间*/
@Excel(name = "来源数据创建时间", width = 15)
@ApiModelProperty(value = "来源数据创建时间")
private String datasourcecreatetime;
/**数据拥有方*/
@Excel(name = "数据拥有方", width = 15)
@ApiModelProperty(value = "数据拥有方")
private String ownerid;
/**数据可见方*/
@Excel(name = "数据可见方", width = 15)
@ApiModelProperty(value = "数据可见方")
private String openid;
}
package org.jeecg.modules.iost.API.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 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: 国网报工信息API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Data
@TableName("reportwork")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="reportwork对象", description="国网报工信息API")
public class Reportwork implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private java.lang.String id;
/**采购方总部编码*/
@Excel(name = "采购方总部编码", width = 15)
@ApiModelProperty(value = "采购方总部编码")
private java.lang.String purchaserhqcode;
/**供应商编码*/
@Excel(name = "供应商编码", width = 15)
@ApiModelProperty(value = "供应商编码")
private java.lang.String suppliercode;
/**生产订单编号*/
@Excel(name = "生产订单编号", width = 15)
@ApiModelProperty(value = "生产订单编号")
private java.lang.String ipono;
/**产品内部ID号*/
@Excel(name = "产品内部ID号", width = 15)
@ApiModelProperty(value = "产品内部ID号")
private java.lang.String insideno;
/**设备编号*/
@Excel(name = "设备编号", width = 15)
@ApiModelProperty(value = "设备编号")
private java.lang.String deviceno;
/**生产批次号*/
@Excel(name = "生产批次号", width = 15)
@ApiModelProperty(value = "生产批次号")
private java.lang.String productbatchno;
/**工序名称*/
@Excel(name = "工序名称", width = 15)
@ApiModelProperty(value = "工序名称")
private java.lang.String processname;
/**品类编码*/
@Excel(name = "品类编码", width = 15)
@ApiModelProperty(value = "品类编码")
private java.lang.String categorycode;
/**种类编码*/
@Excel(name = "种类编码", width = 15)
@ApiModelProperty(value = "种类编码")
private java.lang.String subclasscode;
/**工序编码*/
@Excel(name = "工序编码", width = 15)
@ApiModelProperty(value = "工序编码")
private java.lang.String processcode;
/**生产工艺路线编码*/
@Excel(name = "生产工艺路线编码", width = 15)
@ApiModelProperty(value = "生产工艺路线编码")
private java.lang.String processno;
/**生产车间id*/
@Excel(name = "生产车间id", width = 15)
@ApiModelProperty(value = "生产车间id")
private java.lang.String workshopid;
/**生产车间编码*/
@Excel(name = "生产车间编码", width = 15)
@ApiModelProperty(value = "生产车间编码")
private java.lang.String workshopcode;
/**生产车间名称*/
@Excel(name = "生产车间名称", width = 15)
@ApiModelProperty(value = "生产车间名称")
private java.lang.String workshopname;
/**生产工单编号*/
@Excel(name = "生产工单编号", width = 15)
@ApiModelProperty(value = "生产工单编号")
private java.lang.String wono;
/**实物id,如国网实物id*/
@Excel(name = "实物id,如国网实物id", width = 15)
@ApiModelProperty(value = "实物id,如国网实物id")
private java.lang.String productid;
/**数据来源:0:供应商, 1:网关, 2:代理*/
@Excel(name = "数据来源:0:供应商, 1:网关, 2:代理", width = 15)
@ApiModelProperty(value = "数据来源:0:供应商, 1:网关, 2:代理")
private java.lang.String datasource;
/**来源数据创建时间*/
@Excel(name = "来源数据创建时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "来源数据创建时间")
private java.util.Date datasourcecreatetime;
/**计划开始时间*/
@Excel(name = "计划开始时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "计划开始时间")
private java.util.Date planstarttime;
}
package org.jeecg.modules.iost.API.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 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: 国网备品备件库存API
* @Author: jeecg-boot
* @Date: 2021-07-15
* @Version: V1.0
*/
@Data
@TableName("reservestock_api")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="reservestock_api对象", description="国网备品备件库存API")
public class ReservestockApi implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**采购方总部编码*/
@Excel(name = "采购方总部编码", width = 15)
@ApiModelProperty(value = "采购方总部编码")
private String purchaserhqcode;
/**供应商编码*/
@Excel(name = "供应商编码", width = 15)
@ApiModelProperty(value = "供应商编码")
private String suppliercode;
/**供应商名称*/
@Excel(name = "供应商名称", width = 15)
@ApiModelProperty(value = "供应商名称")
private String suppliername;
/**备品备件编号*/
@Excel(name = "备品备件编号", width = 15)
@ApiModelProperty(value = "备品备件编号")
private String spareproductcode;
/**备品备件描述*/
@Excel(name = "备品备件描述", width = 15)
@ApiModelProperty(value = "备品备件描述")
private String productdec;
/**备品备件库存剩余数量*/
@Excel(name = "备品备件库存剩余数量", width = 15)
@ApiModelProperty(value = "备品备件库存剩余数量")
private String productamount;
/**计量单位*/
@Excel(name = "计量单位", width = 15)
@ApiModelProperty(value = "计量单位")
private String productunit;
/**数据来源*/
@Excel(name = "数据来源", width = 15)
@ApiModelProperty(value = "数据来源")
private String datasource;
/**来源数据创建时间*/
@Excel(name = "来源数据创建时间", width = 15)
@ApiModelProperty(value = "来源数据创建时间")
private String datasourcecreatetime;
/**备注*/
@Excel(name = "备注", width = 15)
@ApiModelProperty(value = "备注")
private String remark;
/**数据拥有方*/
@Excel(name = "数据拥有方", width = 15)
@ApiModelProperty(value = "数据拥有方")
private String ownerid;
/**数据可见方*/
@Excel(name = "数据可见方", width = 15)
@ApiModelProperty(value = "数据可见方")
private String openid;
}
...@@ -103,11 +103,13 @@ public class SalesorderApi implements Serializable { ...@@ -103,11 +103,13 @@ public class SalesorderApi implements Serializable {
@Excel(name = "数据可见方", width = 15) @Excel(name = "数据可见方", width = 15)
@ApiModelProperty(value = "数据可见方") @ApiModelProperty(value = "数据可见方")
private java.lang.String openid; private java.lang.String openid;
/**数据来源0:供应商, 1:网关, 2:代理*/ /**数据来源 0:供应商, 1:网关, 2:代理*/
@Excel(name = "数据来源0:供应商, 1:网关, 2:代理", width = 15) @Excel(name = "数据来源 0:供应商, 1:网关, 2:代理", width = 15)
@ApiModelProperty(value = "数据来源0:供应商, 1:网关, 2:代理") @ApiModelProperty(value = "数据来源 0:供应商, 1:网关, 2:代理")
private java.lang.String datasource; private java.lang.String datasource;
/**来源数据创建时间*/ /**来源数据创建时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@Excel(name = "来源数据创建时间", width = 15) @Excel(name = "来源数据创建时间", width = 15)
@ApiModelProperty(value = "来源数据创建时间") @ApiModelProperty(value = "来源数据创建时间")
private java.lang.String datasourcecreatetime; private java.lang.String datasourcecreatetime;
......
package org.jeecg.modules.iost.API.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 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: 供货单信息
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Data
@TableName("supplylist_api")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="supplylist_api对象", description="供货单信息")
public class SupplylistApi implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**采购方总部编码*/
@Excel(name = "采购方总部编码", width = 15)
@ApiModelProperty(value = "采购方总部编码")
private String purchaserhqcode;
/**供应商编码*/
@Excel(name = "供应商编码", width = 15)
@ApiModelProperty(value = "供应商编码")
private String suppliercode;
/**合同类型:1标准合同;2协议库存;3采购供货单*/
@Excel(name = "合同类型:1标准合同;2协议库存;3采购供货单", width = 15)
@ApiModelProperty(value = "合同类型:1标准合同;2协议库存;3采购供货单")
private String contype;
/**采购供货单编号*/
@Excel(name = "采购供货单编号", width = 15)
@ApiModelProperty(value = "采购供货单编号")
private String supplyno;
/**合同编号*/
@Excel(name = "合同编号", width = 15)
@ApiModelProperty(value = "合同编号")
private String concode;
/**合同签订日期*/
@Excel(name = "合同签订日期", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "合同签订日期")
private Date sellersigntime;
/**工程项目名称*/
@Excel(name = "工程项目名称", width = 15)
@ApiModelProperty(value = "工程项目名称")
private String prjname;
/**合同名称*/
@Excel(name = "合同名称", width = 15)
@ApiModelProperty(value = "合同名称")
private String conname;
/**合同编号(国网经法)*/
@Excel(name = "合同编号(国网经法)", width = 15)
@ApiModelProperty(value = "合同编号(国网经法)")
private String sellerconcode;
/**物资大类编号*/
@Excel(name = "物资大类编号", width = 15)
@ApiModelProperty(value = "物资大类编号")
private String matmaxcode;
/**物资中类编号*/
@Excel(name = "物资中类编号", width = 15)
@ApiModelProperty(value = "物资中类编号")
private String matmedcode;
/**物资小类编号*/
@Excel(name = "物资小类编号", width = 15)
@ApiModelProperty(value = "物资小类编号")
private String matmincode;
/**物资大类名称*/
@Excel(name = "物资大类名称", width = 15)
@ApiModelProperty(value = "物资大类名称")
private String matmaxname;
/**物资中类名称*/
@Excel(name = "物资中类名称", width = 15)
@ApiModelProperty(value = "物资中类名称")
private String matmedname;
/**物资小类名称*/
@Excel(name = "物资小类名称", width = 15)
@ApiModelProperty(value = "物资小类名称")
private String matminname;
/**货物名称*/
@Excel(name = "货物名称", width = 15)
@ApiModelProperty(value = "货物名称")
private String cargoname;
/**品类编码*/
@Excel(name = "品类编码", width = 15)
@ApiModelProperty(value = "品类编码")
private String categorycode;
/**种类编码*/
@Excel(name = "种类编码", width = 15)
@ApiModelProperty(value = "种类编码")
private String subclasscode;
/**采购方公司名称*/
@Excel(name = "采购方公司名称", width = 15)
@ApiModelProperty(value = "采购方公司名称")
private String purchasename;
/**采购方公司编码*/
@Excel(name = "采购方公司编码", width = 15)
@ApiModelProperty(value = "采购方公司编码")
private String purchasecode;
/**供货单项目号*/
@Excel(name = "供货单项目号", width = 15)
@ApiModelProperty(value = "供货单项目号")
private String poitemno;
/**供货单行项目收货方公司名称*/
@Excel(name = "供货单行项目收货方公司名称", width = 15)
@ApiModelProperty(value = "供货单行项目收货方公司名称")
private String receivedname;
/**供货单行项目供应商侧物料编码*/
@Excel(name = "供货单行项目供应商侧物料编码", width = 15)
@ApiModelProperty(value = "供货单行项目供应商侧物料编码")
private String materialcode;
/**供货单行项目物料描述*/
@Excel(name = "供货单行项目物料描述", width = 15)
@ApiModelProperty(value = "供货单行项目物料描述")
private String materialdesc;
/**供货单行项目国网侧物料编码*/
@Excel(name = "供货单行项目国网侧物料编码", width = 15)
@ApiModelProperty(value = "供货单行项目国网侧物料编码")
private String eipmaterialcode;
/**供货单行项目国网侧物料描述*/
@Excel(name = "供货单行项目国网侧物料描述", width = 15)
@ApiModelProperty(value = "供货单行项目国网侧物料描述")
private String eipmaterialdesc;
/**供货单行项目采购数量*/
@Excel(name = "供货单行项目采购数量", width = 15)
@ApiModelProperty(value = "供货单行项目采购数量")
private String amount;
/**供货单行项目计量单位*/
@Excel(name = "供货单行项目计量单位", width = 15)
@ApiModelProperty(value = "供货单行项目计量单位")
private String measunit;
/**数据来源:0:供应商, 1:网关, 2:代理*/
@Excel(name = "数据来源:0:供应商, 1:网关, 2:代理", width = 15)
@ApiModelProperty(value = "数据来源:0:供应商, 1:网关, 2:代理")
private String datasource;
/**来源数据创建时间*/
@Excel(name = "来源数据创建时间", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "来源数据创建时间")
private Date datasourcecreatetime;
/**备注*/
@Excel(name = "备注", width = 15)
@ApiModelProperty(value = "备注")
private String remark;
/**数据拥有方:取值:供应商编码*/
@Excel(name = "数据拥有方:取值:供应商编码", width = 15)
@ApiModelProperty(value = "数据拥有方:取值:供应商编码")
private String ownerid;
/**数据可见方:取值:采购方编码*/
@Excel(name = "数据可见方:取值:采购方编码", width = 15)
@ApiModelProperty(value = "数据可见方:取值:采购方编码")
private String openid;
}
package org.jeecg.modules.iost.API.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 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: 国网工单Api
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Data
@TableName("workorder_api")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="workorder_api对象", description="国网工单Api")
public class WorkorderApi implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**采购方总部编码*/
@Excel(name = "采购方总部编码", width = 15)
@ApiModelProperty(value = "采购方总部编码")
private String purchaserhqcode;
/**供应商生产订单编号*/
@Excel(name = "供应商生产订单编号", width = 15)
@ApiModelProperty(value = "供应商生产订单编号")
private String ipono;
/**供应商编码*/
@Excel(name = "供应商编码", width = 15)
@ApiModelProperty(value = "供应商编码")
private String suppliercode;
/**供应商名称*/
@Excel(name = "供应商名称", width = 15)
@ApiModelProperty(value = "供应商名称")
private String suppliername;
/**生产工单编码*/
@Excel(name = "生产工单编码", width = 15)
@ApiModelProperty(value = "生产工单编码")
private String wono;
/**品类编码*/
@Excel(name = "品类编码", width = 15)
@ApiModelProperty(value = "品类编码")
private String categorycode;
/**种类编码*/
@Excel(name = "种类编码", width = 15)
@ApiModelProperty(value = "种类编码")
private String subclasscode;
/**厂家物料编码*/
@Excel(name = "厂家物料编码", width = 15)
@ApiModelProperty(value = "厂家物料编码")
private String materialscode;
/**厂家物料描述*/
@Excel(name = "厂家物料描述", width = 15)
@ApiModelProperty(value = "厂家物料描述")
private String materialsdescription;
/**物料批次*/
@Excel(name = "物料批次", width = 15)
@ApiModelProperty(value = "物料批次")
private String materialsbatch;
/**生产数量*/
@Excel(name = "生产数量", width = 15)
@ApiModelProperty(value = "生产数量")
private String amount;
/**计量单位*/
@Excel(name = "计量单位", width = 15)
@ApiModelProperty(value = "计量单位")
private String unit;
/**计划开始日期*/
@Excel(name = "计划开始日期", width = 15)
@ApiModelProperty(value = "计划开始日期")
private String planstartdate;
/**计划完成日期*/
@Excel(name = "计划完成日期", width = 15)
@ApiModelProperty(value = "计划完成日期")
private String planfinishdate;
/**实际开始日期*/
@Excel(name = "实际开始日期", width = 15)
@ApiModelProperty(value = "实际开始日期")
private String actualstartdate;
/**实际完成日期*/
@Excel(name = "实际完成日期", width = 15)
@ApiModelProperty(value = "实际完成日期")
private String actualfinishdate;
/**工单状态 :1:创建,2:原材料检验 3:生产中(包含原材料检验),:4:出厂试验,5:包装入库*/
@Excel(name = "工单状态 :1:创建,2:原材料检验 3:生产中(包含原材料检验),:4:出厂试验,5:包装入库", width = 15)
@ApiModelProperty(value = "工单状态 :1:创建,2:原材料检验 3:生产中(包含原材料检验),:4:出厂试验,5:包装入库")
private String wostatus;
/**实物ID*/
@Excel(name = "实物ID", width = 15)
@ApiModelProperty(value = "实物ID")
private String entitycode;
/**工艺路线编码*/
@Excel(name = "工艺路线编码", width = 15)
@ApiModelProperty(value = "工艺路线编码")
private String processrouteno;
/**数据来源:0:供应商, 1:网关, 2:代理*/
@Excel(name = "数据来源:0:供应商, 1:网关, 2:代理", width = 15)
@ApiModelProperty(value = "数据来源:0:供应商, 1:网关, 2:代理")
private String datasource;
/**来源数据创建时间*/
@Excel(name = "来源数据创建时间", width = 15)
@ApiModelProperty(value = "来源数据创建时间")
private String datasourcecreatetime;
/**数据拥有方:取值:供应商编码*/
@Excel(name = "数据拥有方:取值:供应商编码", width = 15)
@ApiModelProperty(value = "数据拥有方:取值:供应商编码")
private String ownerid;
/**数据可见方:取值:采购方编码*/
@Excel(name = "数据可见方:取值:采购方编码", width = 15)
@ApiModelProperty(value = "数据可见方:取值:采购方编码")
private String openid;
/**产品型号规格*/
@Excel(name = "产品型号规格", width = 15)
@ApiModelProperty(value = "产品型号规格")
private String modelspec;
}
package org.jeecg.modules.iost.API.lanjieqi; package org.jeecg.modules.iost.API.lanjieqi;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.authc.AuthenticationException;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.iost.API.vo.PageInfo;
import org.jeecg.modules.iost.API.vo.PurchaseordeRequest;
import org.jeecg.modules.iost.API.vo.Request; import org.jeecg.modules.iost.API.vo.Request;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
...@@ -16,12 +19,13 @@ import javax.servlet.http.HttpServletResponse; ...@@ -16,12 +19,13 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.util.Enumeration; import java.util.Enumeration;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
@Component @Component
public class Lanjieqi_API{ public class Lanjieqi_API{
public String Panduan(HttpServletRequest req){ public static String Panduan(HttpServletRequest req){
Enumeration enumeration = req.getHeaderNames(); Enumeration enumeration = req.getHeaderNames();
Map<String, String> map = new HashMap(); Map<String, String> map = new HashMap();
while (enumeration.hasMoreElements()) { while (enumeration.hasMoreElements()) {
...@@ -49,4 +53,21 @@ public class Lanjieqi_API{ ...@@ -49,4 +53,21 @@ public class Lanjieqi_API{
} }
return jieguo; return jieguo;
} }
public static PurchaseordeRequest autowired(IPage<?> page){
List<?> list = page.getRecords();
PurchaseordeRequest purchaseordeRequest = new PurchaseordeRequest();
purchaseordeRequest.setData(list);
PageInfo pageInfo = new PageInfo();
pageInfo.setPageSize((int)page.getSize());
//pageInfo.setPageCount(page.get);
pageInfo.setPageNum((int)page.getCurrent());
pageInfo.setTotal((int)page.getTotal());
pageInfo.setPageNum((int)page.getCurrent());
purchaseordeRequest.setPageInfo(pageInfo);
purchaseordeRequest.setMessage("成功");
purchaseordeRequest.setStatus("0000");
return purchaseordeRequest;
}
} }
package org.jeecg.modules.iost.API.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.iost.API.entity.Materialinventory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: 国网供应商重点原材料库存API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface MaterialinventoryMapper extends BaseMapper<Materialinventory> {
}
package org.jeecg.modules.iost.API.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.iost.API.entity.PhysicalidApi;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: 国网实物ID信息API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface PhysicalidApiMapper extends BaseMapper<PhysicalidApi> {
}
package org.jeecg.modules.iost.API.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.iost.API.entity.ProductinventoryApi;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: 国网产成品库存信息API
* @Author: jeecg-boot
* @Date: 2021-07-15
* @Version: V1.0
*/
public interface ProductinventoryApiMapper extends BaseMapper<ProductinventoryApi> {
}
package org.jeecg.modules.iost.API.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.iost.API.entity.ProductionorderApi;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: 国网生产订单API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface ProductionorderApiMapper extends BaseMapper<ProductionorderApi> {
}
package org.jeecg.modules.iost.API.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.iost.API.entity.ProductionschedulingApi;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: 排产计划
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface ProductionschedulingApiMapper extends BaseMapper<ProductionschedulingApi> {
}
package org.jeecg.modules.iost.API.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.iost.API.entity.Reportwork;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: 国网报工信息API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface ReportworkMapper extends BaseMapper<Reportwork> {
}
package org.jeecg.modules.iost.API.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.iost.API.entity.ReservestockApi;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: 国网备品备件库存API
* @Author: jeecg-boot
* @Date: 2021-07-15
* @Version: V1.0
*/
public interface ReservestockApiMapper extends BaseMapper<ReservestockApi> {
}
package org.jeecg.modules.iost.API.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.iost.API.entity.SupplylistApi;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: 供货单信息
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface SupplylistApiMapper extends BaseMapper<SupplylistApi> {
}
package org.jeecg.modules.iost.API.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.iost.API.entity.WorkorderApi;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: 国网工单Api
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface WorkorderApiMapper extends BaseMapper<WorkorderApi> {
}
<?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="org.jeecg.modules.iost.API.mapper.MaterialinventoryMapper">
</mapper>
\ No newline at end of file
<?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="org.jeecg.modules.iost.API.mapper.PhysicalidApiMapper">
</mapper>
\ No newline at end of file
<?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="org.jeecg.modules.iost.API.mapper.ProductinventoryApiMapper">
</mapper>
\ No newline at end of file
<?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="org.jeecg.modules.iost.API.mapper.ProductionorderApiMapper">
</mapper>
\ No newline at end of file
<?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="org.jeecg.modules.iost.API.mapper.ProductionschedulingApiMapper">
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.inandoutofstorage.API.mapper.PurchaseorderMapper"> <mapper namespace="org.jeecg.modules.iost.API.mapper.PurchaseorderMapper">
</mapper> </mapper>
\ No newline at end of file
<?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="org.jeecg.modules.iost.API.mapper.ReportworkMapper">
</mapper>
\ No newline at end of file
<?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="org.jeecg.modules.iost.API.mapper.ReservestockApiMapper">
</mapper>
\ No newline at end of file
<?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="org.jeecg.modules.inandoutofstorage.API.mapper.SupplylistApiMapper">
</mapper>
\ No newline at end of file
<?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="org.jeecg.modules.iost.API.mapper.WorkorderApiMapper">
</mapper>
\ No newline at end of file
package org.jeecg.modules.iost.API.service;
import org.jeecg.modules.iost.API.entity.Materialinventory;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: 国网供应商重点原材料库存API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface IMaterialinventoryService extends IService<Materialinventory> {
}
package org.jeecg.modules.iost.API.service;
import org.jeecg.modules.iost.API.entity.PhysicalidApi;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: 国网实物ID信息API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface IPhysicalidApiService extends IService<PhysicalidApi> {
}
package org.jeecg.modules.iost.API.service;
import org.jeecg.modules.iost.API.entity.ProductinventoryApi;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: 国网产成品库存信息API
* @Author: jeecg-boot
* @Date: 2021-07-15
* @Version: V1.0
*/
public interface IProductinventoryApiService extends IService<ProductinventoryApi> {
}
package org.jeecg.modules.iost.API.service;
import org.jeecg.modules.iost.API.entity.ProductionorderApi;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: 国网生产订单API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface IProductionorderApiService extends IService<ProductionorderApi> {
}
package org.jeecg.modules.iost.API.service;
import org.jeecg.modules.iost.API.entity.ProductionschedulingApi;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: 排产计划
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface IProductionschedulingApiService extends IService<ProductionschedulingApi> {
}
package org.jeecg.modules.iost.API.service;
import org.jeecg.modules.iost.API.entity.Reportwork;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: 国网报工信息API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface IReportworkService extends IService<Reportwork> {
}
package org.jeecg.modules.iost.API.service;
import org.jeecg.modules.iost.API.entity.ReservestockApi;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: 国网备品备件库存API
* @Author: jeecg-boot
* @Date: 2021-07-15
* @Version: V1.0
*/
public interface IReservestockApiService extends IService<ReservestockApi> {
}
package org.jeecg.modules.iost.API.service;
import org.jeecg.modules.iost.API.entity.SupplylistApi;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: 供货单信息
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface ISupplylistApiService extends IService<SupplylistApi> {
}
package org.jeecg.modules.iost.API.service;
import org.jeecg.modules.iost.API.entity.WorkorderApi;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: 国网工单Api
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
public interface IWorkorderApiService extends IService<WorkorderApi> {
}
package org.jeecg.modules.iost.API.service.impl;
import org.jeecg.modules.iost.API.entity.Materialinventory;
import org.jeecg.modules.iost.API.mapper.MaterialinventoryMapper;
import org.jeecg.modules.iost.API.service.IMaterialinventoryService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description: 国网供应商重点原材料库存API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Service
public class MaterialinventoryServiceImpl extends ServiceImpl<MaterialinventoryMapper, Materialinventory> implements IMaterialinventoryService {
}
package org.jeecg.modules.iost.API.service.impl;
import org.jeecg.modules.iost.API.entity.PhysicalidApi;
import org.jeecg.modules.iost.API.mapper.PhysicalidApiMapper;
import org.jeecg.modules.iost.API.service.IPhysicalidApiService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description: 国网实物ID信息API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Service
public class PhysicalidApiServiceImpl extends ServiceImpl<PhysicalidApiMapper, PhysicalidApi> implements IPhysicalidApiService {
}
package org.jeecg.modules.iost.API.service.impl;
import org.jeecg.modules.iost.API.entity.ProductinventoryApi;
import org.jeecg.modules.iost.API.mapper.ProductinventoryApiMapper;
import org.jeecg.modules.iost.API.service.IProductinventoryApiService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description: 国网产成品库存信息API
* @Author: jeecg-boot
* @Date: 2021-07-15
* @Version: V1.0
*/
@Service
public class ProductinventoryApiServiceImpl extends ServiceImpl<ProductinventoryApiMapper, ProductinventoryApi> implements IProductinventoryApiService {
}
package org.jeecg.modules.iost.API.service.impl;
import org.jeecg.modules.iost.API.entity.ProductionorderApi;
import org.jeecg.modules.iost.API.mapper.ProductionorderApiMapper;
import org.jeecg.modules.iost.API.service.IProductionorderApiService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description: 国网生产订单API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Service
public class ProductionorderApiServiceImpl extends ServiceImpl<ProductionorderApiMapper, ProductionorderApi> implements IProductionorderApiService {
}
package org.jeecg.modules.iost.API.service.impl;
import org.jeecg.modules.iost.API.entity.ProductionschedulingApi;
import org.jeecg.modules.iost.API.mapper.ProductionschedulingApiMapper;
import org.jeecg.modules.iost.API.service.IProductionschedulingApiService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description: 排产计划
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Service
public class ProductionschedulingApiServiceImpl extends ServiceImpl<ProductionschedulingApiMapper, ProductionschedulingApi> implements IProductionschedulingApiService {
}
package org.jeecg.modules.iost.API.service.impl;
import org.jeecg.modules.iost.API.entity.Reportwork;
import org.jeecg.modules.iost.API.mapper.ReportworkMapper;
import org.jeecg.modules.iost.API.service.IReportworkService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description: 国网报工信息API
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Service
public class ReportworkServiceImpl extends ServiceImpl<ReportworkMapper, Reportwork> implements IReportworkService {
}
package org.jeecg.modules.iost.API.service.impl;
import org.jeecg.modules.iost.API.entity.ReservestockApi;
import org.jeecg.modules.iost.API.mapper.ReservestockApiMapper;
import org.jeecg.modules.iost.API.service.IReservestockApiService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description: 国网备品备件库存API
* @Author: jeecg-boot
* @Date: 2021-07-15
* @Version: V1.0
*/
@Service
public class ReservestockApiServiceImpl extends ServiceImpl<ReservestockApiMapper, ReservestockApi> implements IReservestockApiService {
}
package org.jeecg.modules.iost.API.service.impl;
import org.jeecg.modules.iost.API.entity.SupplylistApi;
import org.jeecg.modules.iost.API.mapper.SupplylistApiMapper;
import org.jeecg.modules.iost.API.service.ISupplylistApiService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description: 供货单信息
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Service
public class SupplylistApiServiceImpl extends ServiceImpl<SupplylistApiMapper, SupplylistApi> implements ISupplylistApiService {
}
package org.jeecg.modules.iost.API.service.impl;
import org.jeecg.modules.iost.API.entity.WorkorderApi;
import org.jeecg.modules.iost.API.mapper.WorkorderApiMapper;
import org.jeecg.modules.iost.API.service.IWorkorderApiService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description: 国网工单Api
* @Author: jeecg-boot
* @Date: 2021-07-14
* @Version: V1.0
*/
@Service
public class WorkorderApiServiceImpl extends ServiceImpl<WorkorderApiMapper, WorkorderApi> implements IWorkorderApiService {
}
package org.jeecg.modules.iost.API.servlets;
import org.springframework.stereotype.Component;
import org.springframework.web.filter.OncePerRequestFilter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
/**
* 返回请求时增加响应头的属性
*/
@Component
public class LoginServlet extends OncePerRequestFilter {
@Override
protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain) throws ServletException, IOException {
Enumeration enumeration = httpServletRequest.getHeaderNames();
while (enumeration.hasMoreElements()) {
String headerName = (String) enumeration.nextElement();
String headValue = httpServletRequest.getHeader(headerName);
if (headerName.equals("orisys")){
httpServletResponse.addHeader("orisys",headValue);
}
if (headerName.equals("transno")){
httpServletResponse.addHeader("transno",headValue);
}
if (headerName.equals("operatetype")){
httpServletResponse.addHeader("operatetype",headValue);
}
}
}
}
<template>
<a-card :bordered="false">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
</a-row>
</a-form>
</div>
<!-- 查询区域-END -->
<!-- 操作按钮区域 -->
<div class="table-operator">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('国网工单Api')">导出</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
</a-dropdown>
</div>
<!-- table区域-begin -->
<div>
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>
<a style="margin-left: 24px" @click="onClearSelected">清空</a>
</div>
<a-table
ref="table"
size="middle"
:scroll="{x:true}"
bordered
rowKey="id"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
class="j-table-force-nowrap"
@change="handleTableChange">
<template slot="htmlSlot" slot-scope="text">
<div v-html="text"></div>
</template>
<template slot="imgSlot" slot-scope="text">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
<img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
</template>
<template slot="fileSlot" slot-scope="text">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
<a-button
v-else
:ghost="true"
type="primary"
icon="download"
size="small"
@click="downloadFile(text)">
下载
</a-button>
</template>
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a>
<a-divider type="vertical" />
<a-dropdown>
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
<a-menu slot="overlay">
<a-menu-item>
<a @click="handleDetail(record)">详情</a>
</a-menu-item>
<a-menu-item>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>
</a-menu-item>
</a-menu>
</a-dropdown>
</span>
</a-table>
</div>
<workorder-api-modal ref="modalForm" @ok="modalFormOk"></workorder-api-modal>
</a-card>
</template>
<script>
import '@/assets/less/TableExpand.less'
import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import WorkorderApiModal from './modules/WorkorderApiModal'
export default {
name: 'WorkorderApiList',
mixins:[JeecgListMixin, mixinDevice],
components: {
WorkorderApiModal
},
data () {
return {
description: '国网工单Api管理页面',
// 表头
columns: [
{
title: '#',
dataIndex: '',
key:'rowIndex',
width:60,
align:"center",
customRender:function (t,r,index) {
return parseInt(index)+1;
}
},
{
title:'采购方总部编码',
align:"center",
dataIndex: 'purchaserhqcode'
},
{
title:'供应商生产订单编号',
align:"center",
dataIndex: 'ipono'
},
{
title:'供应商编码',
align:"center",
dataIndex: 'suppliercode'
},
{
title:'供应商名称',
align:"center",
dataIndex: 'suppliername'
},
{
title:'生产工单编码',
align:"center",
dataIndex: 'wono'
},
{
title:'品类编码',
align:"center",
dataIndex: 'categorycode'
},
{
title:'种类编码',
align:"center",
dataIndex: 'subclasscode'
},
{
title:'厂家物料编码',
align:"center",
dataIndex: 'materialscode'
},
{
title:'厂家物料描述',
align:"center",
dataIndex: 'materialsdescription'
},
{
title:'物料批次',
align:"center",
dataIndex: 'materialsbatch'
},
{
title:'生产数量',
align:"center",
dataIndex: 'amount'
},
{
title:'计量单位',
align:"center",
dataIndex: 'unit'
},
{
title:'计划开始日期',
align:"center",
dataIndex: 'planstartdate'
},
{
title:'计划完成日期',
align:"center",
dataIndex: 'planfinishdate'
},
{
title:'实际开始日期',
align:"center",
dataIndex: 'actualstartdate'
},
{
title:'实际完成日期',
align:"center",
dataIndex: 'actualfinishdate'
},
{
title:'工单状态 :1:创建,2:原材料检验 3:生产中(包含原材料检验),:4:出厂试验,5:包装入库',
align:"center",
dataIndex: 'wostatus'
},
{
title:'实物ID',
align:"center",
dataIndex: 'entitycode'
},
{
title:'工艺路线编码',
align:"center",
dataIndex: 'processrouteno'
},
{
title:'数据来源:0:供应商, 1:网关, 2:代理',
align:"center",
dataIndex: 'datasource'
},
{
title:'来源数据创建时间',
align:"center",
dataIndex: 'datasourcecreatetime'
},
{
title:'数据拥有方:取值:供应商编码',
align:"center",
dataIndex: 'ownerid'
},
{
title:'数据可见方:取值:采购方编码',
align:"center",
dataIndex: 'openid'
},
{
title:'产品型号规格',
align:"center",
dataIndex: 'modelspec'
},
{
title: '操作',
dataIndex: 'action',
align:"center",
fixed:"right",
width:147,
scopedSlots: { customRender: 'action' }
}
],
url: {
list: "/API/workorderApi/list",
delete: "/API/workorderApi/delete",
deleteBatch: "/API/workorderApi/deleteBatch",
exportXlsUrl: "/API/workorderApi/exportXls",
importExcelUrl: "API/workorderApi/importExcel",
},
dictOptions:{},
}
},
created() {
},
computed: {
importExcelUrl: function(){
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
},
},
methods: {
initDictConfig(){
}
}
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>
\ No newline at end of file
<template>
<j-modal
:title="title"
:width="width"
:visible="visible"
switchFullscreen
@ok="handleOk"
:okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
@cancel="handleCancel"
cancelText="关闭">
<workorder-api-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></workorder-api-form>
</j-modal>
</template>
<script>
import WorkorderApiForm from './WorkorderApiForm'
export default {
name: 'WorkorderApiModal',
components: {
WorkorderApiForm
},
data () {
return {
title:'',
width:800,
visible: false,
disableSubmit: false
}
},
methods: {
add () {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.add();
})
},
edit (record) {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.edit(record);
})
},
close () {
this.$emit('close');
this.visible = false;
},
handleOk () {
this.$refs.realForm.submitForm();
},
submitCallback(){
this.$emit('ok');
this.visible = false;
},
handleCancel () {
this.close()
}
}
}
</script>
\ No newline at end of file
<template>
<a-drawer
:title="title"
:width="width"
placement="right"
:closable="false"
@close="close"
:visible="visible">
<workorder-api-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></workorder-api-form>
<div class="drawer-footer">
<a-button @click="handleCancel" style="margin-bottom: 0;">关闭</a-button>
<a-button v-if="!disableSubmit" @click="handleOk" type="primary" style="margin-bottom: 0;">提交</a-button>
</div>
</a-drawer>
</template>
<script>
import WorkorderApiForm from './WorkorderApiForm'
export default {
name: 'WorkorderApiModal',
components: {
WorkorderApiForm
},
data () {
return {
title:"操作",
width:800,
visible: false,
disableSubmit: false
}
},
methods: {
add () {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.add();
})
},
edit (record) {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.edit(record);
});
},
close () {
this.$emit('close');
this.visible = false;
},
submitCallback(){
this.$emit('ok');
this.visible = false;
},
handleOk () {
this.$refs.realForm.submitForm();
},
handleCancel () {
this.close()
}
}
}
</script>
<style lang="less" scoped>
/** Button按钮间距 */
.ant-btn {
margin-left: 30px;
margin-bottom: 30px;
float: right;
}
.drawer-footer{
position: absolute;
bottom: -8px;
width: 100%;
border-top: 1px solid #e8e8e8;
padding: 10px 16px;
text-align: right;
left: 0;
background: #fff;
border-radius: 0 0 2px 2px;
}
</style>
\ No newline at end of file
...@@ -3,7 +3,7 @@ server: ...@@ -3,7 +3,7 @@ server:
tomcat: tomcat:
max-swallow-size: -1 max-swallow-size: -1
servlet: servlet:
context-path: /wmssystem context-path:
compression: compression:
enabled: true enabled: true
min-response-size: 1024 min-response-size: 1024
......
...@@ -3,7 +3,7 @@ server: ...@@ -3,7 +3,7 @@ server:
tomcat: tomcat:
max-swallow-size: -1 max-swallow-size: -1
servlet: servlet:
context-path: /wmssystem context-path:
compression: compression:
enabled: true enabled: true
min-response-size: 1024 min-response-size: 1024
......
...@@ -3,7 +3,7 @@ server: ...@@ -3,7 +3,7 @@ server:
tomcat: tomcat:
max-swallow-size: -1 max-swallow-size: -1
servlet: servlet:
context-path: /wmssystem context-path:
compression: compression:
enabled: true enabled: true
min-response-size: 1024 min-response-size: 1024
......
...@@ -3,7 +3,7 @@ server: ...@@ -3,7 +3,7 @@ server:
tomcat: tomcat:
max-swallow-size: -1 max-swallow-size: -1
servlet: servlet:
context-path: /wmssystem context-path:
compression: compression:
enabled: true enabled: true
min-response-size: 1024 min-response-size: 1024
......
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.inandoutofstorage.API.mapper.PurchaseorderMapper"> <mapper namespace="org.jeecg.modules.iost.API.mapper.PurchaseorderMapper">
</mapper> </mapper>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论