Commit af96214f49d6b084c201f5ff6e0b9eecc75bad1e

Authored by 肖超群
1 parent 77473808

去掉inventoryChild

huaheng-wms-core/src/main/java/org/jeecg/modules/wms/inventory/inventoryChild/controller/InventoryChildController.java deleted
1   -package org.jeecg.modules.wms.inventory.inventoryChild.controller;
2   -
3   -import java.util.Arrays;
4   -
5   -import javax.servlet.http.HttpServletRequest;
6   -import javax.servlet.http.HttpServletResponse;
7   -
8   -import org.jeecg.common.api.vo.Result;
9   -import org.jeecg.common.aspect.annotation.AutoLog;
10   -import org.jeecg.common.system.base.controller.JeecgController;
11   -import org.jeecg.common.system.query.QueryGenerator;
12   -import org.jeecg.modules.wms.inventory.inventoryChild.entity.InventoryChild;
13   -import org.jeecg.modules.wms.inventory.inventoryChild.service.IInventoryChildService;
14   -import org.springframework.beans.factory.annotation.Autowired;
15   -import org.springframework.web.bind.annotation.*;
16   -import org.springframework.web.servlet.ModelAndView;
17   -
18   -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
19   -import com.baomidou.mybatisplus.core.metadata.IPage;
20   -import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
21   -
22   -import io.swagger.annotations.Api;
23   -import io.swagger.annotations.ApiOperation;
24   -import lombok.extern.slf4j.Slf4j;
25   -
26   -/**
27   - * @Description: 库存明细
28   - * @Author: jeecg-boot
29   - * @Date: 2023-03-24
30   - * @Version: V1.0
31   - */
32   -@Api(tags = "库存明细")
33   -@RestController
34   -@RequestMapping("/inventory/inventoryChild")
35   -@Slf4j
36   -public class InventoryChildController extends JeecgController<InventoryChild, IInventoryChildService> {
37   - @Autowired
38   - private IInventoryChildService inventoryChildService;
39   -
40   - /**
41   - * 分页列表查询
42   - * @param inventoryChild
43   - * @param pageNo
44   - * @param pageSize
45   - * @param req
46   - * @return
47   - */
48   - // @AutoLog(value = "库存明细-分页列表查询")
49   - @ApiOperation(value = "库存明细-分页列表查询", notes = "库存明细-分页列表查询")
50   - @GetMapping(value = "/list")
51   - public Result<IPage<InventoryChild>> queryPageList(InventoryChild inventoryChild, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
52   - @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
53   - QueryWrapper<InventoryChild> queryWrapper = QueryGenerator.initQueryWrapper(inventoryChild, req.getParameterMap());
54   - Page<InventoryChild> page = new Page<InventoryChild>(pageNo, pageSize);
55   - IPage<InventoryChild> pageList = inventoryChildService.page(page, queryWrapper);
56   - return Result.OK(pageList);
57   - }
58   -
59   - /**
60   - * 添加
61   - * @param inventoryChild
62   - * @return
63   - */
64   - @AutoLog(value = "库存明细-添加")
65   - @ApiOperation(value = "库存明细-添加", notes = "库存明细-添加")
66   - @PostMapping(value = "/add")
67   - public Result<String> add(@RequestBody InventoryChild inventoryChild) {
68   - inventoryChildService.save(inventoryChild);
69   - return Result.OK("添加成功!");
70   - }
71   -
72   - /**
73   - * 编辑
74   - * @param inventoryChild
75   - * @return
76   - */
77   - @AutoLog(value = "库存明细-编辑")
78   - @ApiOperation(value = "库存明细-编辑", notes = "库存明细-编辑")
79   - @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
80   - public Result<String> edit(@RequestBody InventoryChild inventoryChild) {
81   - inventoryChildService.updateById(inventoryChild);
82   - return Result.OK("编辑成功!");
83   - }
84   -
85   - /**
86   - * 通过id删除
87   - * @param id
88   - * @return
89   - */
90   - @AutoLog(value = "库存明细-通过id删除")
91   - @ApiOperation(value = "库存明细-通过id删除", notes = "库存明细-通过id删除")
92   - @DeleteMapping(value = "/delete")
93   - public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
94   - inventoryChildService.removeById(id);
95   - return Result.OK("删除成功!");
96   - }
97   -
98   - /**
99   - * 批量删除
100   - * @param ids
101   - * @return
102   - */
103   - @AutoLog(value = "库存明细-批量删除")
104   - @ApiOperation(value = "库存明细-批量删除", notes = "库存明细-批量删除")
105   - @DeleteMapping(value = "/deleteBatch")
106   - public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
107   - this.inventoryChildService.removeByIds(Arrays.asList(ids.split(",")));
108   - return Result.OK("批量删除成功!");
109   - }
110   -
111   - /**
112   - * 通过id查询
113   - * @param id
114   - * @return
115   - */
116   - // @AutoLog(value = "库存明细-通过id查询")
117   - @ApiOperation(value = "库存明细-通过id查询", notes = "库存明细-通过id查询")
118   - @GetMapping(value = "/queryById")
119   - public Result<InventoryChild> queryById(@RequestParam(name = "id", required = true) String id) {
120   - InventoryChild inventoryChild = inventoryChildService.getById(id);
121   - if (inventoryChild == null) {
122   - return Result.error("未找到对应数据");
123   - }
124   - return Result.OK(inventoryChild);
125   - }
126   -
127   - /**
128   - * 导出excel
129   - * @param request
130   - * @param inventoryChild
131   - */
132   - @RequestMapping(value = "/exportXls")
133   - public ModelAndView exportXls(HttpServletRequest request, InventoryChild inventoryChild) {
134   - return super.exportXls(request, inventoryChild, InventoryChild.class, "库存明细");
135   - }
136   -
137   - /**
138   - * 通过excel导入数据
139   - * @param request
140   - * @param response
141   - * @return
142   - */
143   - @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
144   - public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
145   - return super.importExcel(request, response, InventoryChild.class);
146   - }
147   -
148   -}
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/inventory/inventoryChild/entity/InventoryChild.java deleted
1   -package org.jeecg.modules.wms.inventory.inventoryChild.entity;
2   -
3   -import java.io.Serializable;
4   -import java.util.Date;
5   -
6   -import org.jeecg.common.aspect.annotation.Dict;
7   -import org.jeecgframework.poi.excel.annotation.Excel;
8   -
9   -import com.baomidou.mybatisplus.annotation.IdType;
10   -import com.baomidou.mybatisplus.annotation.TableId;
11   -import com.baomidou.mybatisplus.annotation.TableName;
12   -
13   -import io.swagger.annotations.ApiModel;
14   -import io.swagger.annotations.ApiModelProperty;
15   -import lombok.Data;
16   -import lombok.EqualsAndHashCode;
17   -import lombok.experimental.Accessors;
18   -
19   -/**
20   - * @Description: 库存明细
21   - * @Author: jeecg-boot
22   - * @Date: 2023-03-24
23   - * @Version: V1.0
24   - */
25   -@Data
26   -@TableName("inventory_child")
27   -@Accessors(chain = true)
28   -@EqualsAndHashCode(callSuper = false)
29   -@ApiModel(value = "inventory_child对象", description = "库存明细")
30   -public class InventoryChild implements Serializable {
31   - private static final long serialVersionUID = 1L;
32   -
33   - /** 主键 */
34   - @TableId(type = IdType.ASSIGN_ID)
35   - @ApiModelProperty(value = "主键")
36   - private String id;
37   - /** 库存头ID */
38   - @Excel(name = "库存头ID", width = 15)
39   - @ApiModelProperty(value = "库存头ID")
40   - private Integer inventoryHeaderId;
41   - /** 仓库编码 */
42   - @Excel(name = "仓库编码", width = 15)
43   - @ApiModelProperty(value = "仓库编码")
44   - private String warehouseCode;
45   - /** 货主 */
46   - @Excel(name = "货主", width = 15)
47   - @ApiModelProperty(value = "货主")
48   - private String companyCode;
49   - /** 库区 */
50   - @Excel(name = "库区", width = 15)
51   - @ApiModelProperty(value = "库区")
52   - private String zoneCode;
53   - /** 容器状态 */
54   - @Excel(name = "容器状态", width = 15, dicCode = "container_status")
55   - @Dict(dicCode = "container_status")
56   - @ApiModelProperty(value = "容器状态")
57   - private String containerStatus;
58   - /** 容器编码 */
59   - @Excel(name = "容器编码", width = 15)
60   - @ApiModelProperty(value = "容器编码")
61   - private String containerCode;
62   - /** 库位编码 */
63   - @Excel(name = "库位编码", width = 15)
64   - @ApiModelProperty(value = "库位编码")
65   - private String locationCode;
66   - /** 物料编码 */
67   - @Excel(name = "物料编码", width = 15)
68   - @ApiModelProperty(value = "物料编码")
69   - private String materialCode;
70   - /** 物料名称 */
71   - @Excel(name = "物料名称", width = 15)
72   - @ApiModelProperty(value = "物料名称")
73   - private String materialName;
74   - /** 物料规格 */
75   - @Excel(name = "物料规格", width = 15)
76   - @ApiModelProperty(value = "物料规格")
77   - private String materialSpec;
78   - /** 物料单位 */
79   - @Excel(name = "物料单位", width = 15)
80   - @ApiModelProperty(value = "物料单位")
81   - private String materialUnit;
82   - /** 库存状态 */
83   - @Excel(name = "库存状态", width = 15, dicCode = "inventory_status")
84   - @Dict(dicCode = "inventory_status")
85   - @ApiModelProperty(value = "库存状态")
86   - private String inventoryStatus;
87   - /** 库龄(天) */
88   - @Excel(name = "库龄(天)", width = 15)
89   - @ApiModelProperty(value = "库龄(天)")
90   - private Integer inventoryAge;
91   - /** 序列号 */
92   - @Excel(name = "序列号", width = 15)
93   - @ApiModelProperty(value = "序列号")
94   - private String sn;
95   - /** 创建人 */
96   - @ApiModelProperty(value = "创建人")
97   - private String createBy;
98   - /** 创建日期 */
99   - @ApiModelProperty(value = "创建日期")
100   - private Date createTime;
101   - /** 更新人 */
102   - @ApiModelProperty(value = "更新人")
103   - private String updateBy;
104   - /** 更新日期 */
105   - @ApiModelProperty(value = "更新日期")
106   - private Date updateTime;
107   -}
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/inventory/inventoryChild/mapper/InventoryChildMapper.java deleted
1   -package org.jeecg.modules.wms.inventory.inventoryChild.mapper;
2   -
3   -import org.jeecg.modules.wms.inventory.inventoryChild.entity.InventoryChild;
4   -
5   -import com.baomidou.mybatisplus.core.mapper.BaseMapper;
6   -
7   -/**
8   - * @Description: 库存明细
9   - * @Author: jeecg-boot
10   - * @Date: 2023-03-24
11   - * @Version: V1.0
12   - */
13   -public interface InventoryChildMapper extends BaseMapper<InventoryChild> {
14   -
15   -}
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/inventory/inventoryChild/mapper/xml/InventoryChildMapper.xml deleted
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3   -<mapper namespace="org.jeecg.modules.wms.inventory.inventoryChild.mapper.InventoryChildMapper">
4   -
5   -</mapper>
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/inventory/inventoryChild/service/IInventoryChildService.java deleted
1   -package org.jeecg.modules.wms.inventory.inventoryChild.service;
2   -
3   -import org.jeecg.modules.wms.inventory.inventoryChild.entity.InventoryChild;
4   -
5   -import com.baomidou.mybatisplus.extension.service.IService;
6   -
7   -/**
8   - * @Description: 库存明细
9   - * @Author: jeecg-boot
10   - * @Date: 2023-03-24
11   - * @Version: V1.0
12   - */
13   -public interface IInventoryChildService extends IService<InventoryChild> {
14   -
15   -}
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/inventory/inventoryChild/service/impl/InventoryChildServiceImpl.java deleted
1   -package org.jeecg.modules.wms.inventory.inventoryChild.service.impl;
2   -
3   -import org.jeecg.modules.wms.inventory.inventoryChild.entity.InventoryChild;
4   -import org.jeecg.modules.wms.inventory.inventoryChild.mapper.InventoryChildMapper;
5   -import org.jeecg.modules.wms.inventory.inventoryChild.service.IInventoryChildService;
6   -import org.springframework.stereotype.Service;
7   -
8   -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
9   -
10   -/**
11   - * @Description: 库存明细
12   - * @Author: jeecg-boot
13   - * @Date: 2023-03-24
14   - * @Version: V1.0
15   - */
16   -@Service
17   -public class InventoryChildServiceImpl extends ServiceImpl<InventoryChildMapper, InventoryChild> implements IInventoryChildService {
18   -
19   -}